SPRU514Z July 2001 – October 2023 SM320F28335-EP
Delete File
#include <file.h>
int unlink (const char *path );
The unlink function deletes the file specified by path. Depending on the device, a deleted file may still remain until all file descriptors which have been opened for that file have been closed. See Section 8.2.3.
The path is the filename of the file, including path information and optional device prefix. (See Section 8.2.5.)
The function returns one of the following values:
0 | if successful |
-1 | on failure |