Видалити файл

if( remove("1.txt") != 0 ) 

     cout<< "Error deleting 1.txt";