DOKK / manpages / debian 13 / libsdl3-doc / SDL_RemovePath.3.en
SDL_RemovePath(3) SDL3 FUNCTIONS SDL_RemovePath(3)

SDL_RemovePath - Remove a file or an empty directory.

Defined in SDL3/SDL_filesystem.h

#include "SDL3/SDL.h"
bool SDL_RemovePath(const char *path);

Directories that are not empty will fail; this function will not recursely delete directory trees.

the path to remove from the filesystem.

Returns true on success or false on failure; call

SDL_GetError () for more information.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer