SD - rmdir()

Remove a directory from the SD card. The directory must be empty.

Syntax

SD.rmdir(filename)

Parameters

  • filename: the name of the directory to remove, with sub-directories separated by forward-slashes, /.

Returns

1 if the removal of the directory succeeded, 0 if not (if the directory didn’t exist, the return value is unspecified).

See also