al_remove_filename

bool al_remove_filename(const char *path)
Introduced in 5.0.0

Delete the given path from the filesystem, which may be a file or an empty directory. This is the same as al_remove_fs_entry, except it expects the path as a string.

Returns true on success, and false on failure. Allegro's errno is filled in to indicate the error.

See also: al_remove_fs_entry