SDL_RemovePath - Man Page

Remove a file or an empty directory.

Synopsis

#include <SDL3/SDL_filesystem.h>

bool SDL_RemovePath(const char *path);

Description

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

Function Parameters

path

the path to remove from the filesystem.

Return Value

Returns true on success or false on failure; call SDL_GetError() for more information.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

Info

SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS