#include <stdio.h>
int remove(const char *path);
MT-Safe
For files, remove() is identical to unlink(). For directories, remove() is identical to rmdir().
See rmdir(2) and unlink(2) for a detailed list of failure conditions.
Upon successful completion, remove() returns a value of 0; otherwise, it returns a value of -1 and sets errno to indicate an error.