** Delete a file. */
| 15764 | ** Delete a file. |
| 15765 | */ |
| 15766 | int shellDeleteFile(const char *zFilename){ |
| 15767 | int rc; |
| 15768 | #ifdef _WIN32 |
| 15769 | wchar_t *z = sqlite3_win32_utf8_to_unicode(zFilename); |
| 15770 | rc = _wunlink(z); |
| 15771 | sqlite3_free(z); |
| 15772 | #else |
| 15773 | rc = unlink(zFilename); |
| 15774 | #endif |
| 15775 | return rc; |
| 15776 | } |
| 15777 | |
| 15778 | /* |
| 15779 | ** Try to delete the temporary file (if there is one) and free the |
no outgoing calls
no test coverage detected