##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# remove

From cppreference.com
< c‎ | io

Defined in header `<stdio.h>` |  |
int remove( const char *fname ); |  |

Deletes the file identified by character string pointed to by `fname`.

### [edit] Parameters

fname | - | pointer to a null-terminated string containing the path identifying the file to delete

### [edit] Return value

​0​ upon success or non-zero value on error.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

rename | renames a file (function) [edit]
C++ documentation for remove

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/io/remove&oldid=56472"
Category:

- Todo no example