← All docs

rmdir()

Removes a directory.

rmdir()

function rmdir(string $directory): bool

Removes a directory.

Parameters:

  • $directory (string)

Returns: bool

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how rmdir is implemented in the compiler, see the internals page.