remove
From cppreference.com
| Defined in header <stdio.h>
|
||
| int remove( const char *fname ); |
||
Deletes the file identified by character string pointed to by fname.
If the file is currently open by this or another process, the behavior of this function is implementation-defined (in particular, POSIX systems unlink the file name although the file system space is not reclaimed until the last running process closes the file; Windows does not allow the file to be deleted).
Parameters
| fname | - | pointer to a null-terminated string containing the path identifying the file to delete |
Return value
0 upon success or non-zero value on error.
Notes
POSIX specifies many additional details for the behavior of this function.