FRESULT f_unlink (
const char* FileName // Pointer to the file or directory name
);
Parameters
FileName
Pointer to the null-terminated string that specifies the full path name of a file or directory to be removed. In read-only and minimum configuration, this function is not supported.
Return Values
FR_OK (0)
The function succeeded.
FR_NOFILE
Could not find the file or directory.
FR_NOPATH
Could not find the path.
FR_INVALID_NAME
The path name is invalid.
FR_DENIED
The function was denied due to either of following reasons: the file or directory has read-only attribute, the directory is not empty.
FR_NOT_READY
The disk drive cannot work due to no medium in the drive or any other reason.
FR_WRITE_PROTECTED
Write mode open or creation under the medium is write protected.
FR_RW_ERROR
Any error occured in low level disk I/O.
FR_INCORRECT_DISK_CHANGE
Incorrect disk removal, such as a medium change during any file is opend, has been occured.