SDL_RemovePath - Man Page

Remove a file or an empty directory.

Header File

Defined in SDL3/SDL_filesystem.h

Synopsis

#include "SDL3/SDL.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.

Availability

This function is available since SDL 3.2.0.

Info

SDL 3.2.8 Simple Directmedia Layer SDL3 FUNCTIONS