Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > remove

remove

Example: remove File Manipulation Functions

Deletes the specified file.

int remove( const char *path);

path The full path of the file to delete.

For remove details, refer to your C language documentation.

Return Values

The function returns zero on success and -1 on failure. It also sets the global variable errno to indicate the specific error.