#include <unistd.h> if (unlink(pathname)) { fprintf(stderr, "Konnte Datei '%s' nicht löschen\n", pathname); }