int unlink(const char *path);
This system call implements the POSIX unlink function, which deletes a file.
path The name of the file to remove.
Returns 0 if successful, or -1 on error, in which case errno indicates the error.