Éliminer le fichier en c

#include<stdlib.h>
#include<stdio.h>

int main() {
  int res;

  res=remove("x");
  if( res!=0 )
    perror("Errore nella rimozione del file");

  return 0;
}
fa.moso