rmrdir()

rmrdir()#

rmrdir() recursively removes a directory and all its contents, including subdirectories and files.

Prototype

int rmrdir(
    const char *path
);

Parameters

Key

Type

Description

path

const char *

The path of the directory to be removed.


Return Value

Returns 0 on success, or -1 if an error occurs.

Notes

This function removes all files and subdirectories within the specified directory before deleting the directory itself.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples