The standard function remove() deletes a file. It takes one argument of type const char * which is the name of the file to be deleted. You can provide a full path as a filename. On success, remove() returns 0. A non-zero return code indicates an error.