#include <stdio.h>int remove(const char *fname);
The remove( ) function erases the file specified by fname. It returns zero if the file was successfully deleted and nonzero if an error occurred.
A related function is rename( ).