DOKK / manpages / debian 11 / allegro4-doc / delete_file.3alleg4.en
delete_file(3alleg4) Allegro manual delete_file(3alleg4)

delete_file - Removes a file from the disk. Allegro game programming library.

#include <allegro.h>

int delete_file(const char *filename);

Removes a file from the disk. You can't delete directories, though.

Returns zero on success, non-zero on failure.

version 4.4.3 Allegro