SLAU132Y September 2004 – June 2021
Delete File
int DEV_unlink (const char *path );
Remove the association of the pathname with the file. This means that the file may no longer be opened using this name, but the file may not actually be immediately removed.
Depending on the device, the file may be immediately removed, but for a device which allows open file descriptors to point to unlinked files, the file will not actually be deleted until the last file descriptor is closed. See Section 8.3.3.
This function must return -1 to indicate an error if for some reason the file could not be unlinked (delayed removal does not count as a failure to unlink.)
If successful, this function returns 0.