Code Snippets C

#include
int main ()
{
if( remove( "file.txt" ) == -1 )
perror( "Error deleting file.txt" );
else
puts( "File deleted" );
return 0;
}