Sign in Join
FPDoc Onlineexperiment

RemoveDir function

In unit sysutils

Remove a directory from the file system.

Declaration

pascal
function RemoveDir(const Dir: RawByteString): Boolean

Description

RemoveDir removes directory Dir from the disk. If the directory is not absolute, it is appended to the current working directory.

For an example, see CreateDir.

Errors

In case of error (e.g. the directory isn't empty) the function returns False. If successful, True is returned.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.