Deletes a specified file or directory.
#include <stdio.h> int remove ( const char *path);
(IN) Points to the path of the file or directory to remove.
If successful, returns 0; otherwise, return -1 and sets errno to one of the following:
The remove function causes a file to be marked for deletion. A file marked for deletion is not actually erased until the space it occupies is needed by another file.
If the path parameter specifies a directory, the directory is removed only if it is an empty directory.
The current connection must have Delete rights to the specified file or directory.
Wildcard specifiers are allowed for the path parameter.