DOKK / manpages / debian 12 / allegro5-doc / al_remove_fs_entry.3alleg5.en
al_remove_fs_entry(3alleg5) al_remove_fs_entry(3alleg5)

al_remove_fs_entry - Allegro 5 API

#include <allegro5/allegro.h>
bool al_remove_fs_entry(ALLEGRO_FS_ENTRY *e)
    

Delete this filesystem entry from the filesystem. Only files and empty directories may be deleted.

Returns true on success, and false on failure, error is indicated in Allegro’s errno.

al_filename_exists(3alleg5)

Allegro reference manual