Full prototype:

int remove(const char*);  

Purpose and Notes:

Deletes the file that is passed in from the argument.

Or more technically the standard only states that the name given by the argument can no longer be used to access the file.

It is implementation-defined behavior to delete an open file.


int- Returns a zero on success and a non-zero if it fails to remove the file.

Argument 1:

const char*- The full or relative path to a file.

Example 1