remove function(Remove File) in C Language – example and detail

In the C Programming Language, the get rid of feature eliminates a file pointed to by way of filename.


The syntax for the cast off feature in the C Language is:

int remove(const char *filename);

Parameters or Arguments


The file to delete.


The dispose of feature returns zero is successful, otherwise nonzero.

Required Header

In the C Language, the required header for the get rid of feature is:

#include <stdio.h>

Applies To

In the C Language, the cast off feature can be used in the following versions:

ANSI/ISO 9899-1990

See Also

Other C features that are noteworthy when dealing with the dispose of function:

rename function <stdio.h>