** Delete a file. */
| 26647 | ** Delete a file. |
| 26648 | */ |
| 26649 | int shellDeleteFile(const char *zFilename){ |
| 26650 | int rc; |
| 26651 | #ifdef _WIN32 |
| 26652 | wchar_t *z = sqlite3_win32_utf8_to_unicode(zFilename); |
| 26653 | rc = _wunlink(z); |
| 26654 | sqlite3_free(z); |
| 26655 | #else |
| 26656 | rc = unlink(zFilename); |
| 26657 | #endif |
| 26658 | return rc; |
| 26659 | } |
| 26660 | |
| 26661 | /* |
| 26662 | ** Try to delete the temporary file (if there is one) and free the |
no outgoing calls
no test coverage detected