Procedure DirectoryDelete(directory, delete\_readonly\_files)


The procedure DirectoryDelete deletes a directory from your disk. If this directory contains files, then these files are deleted as well.

        directory,                ! (input) scalar string expression
        [delete_readonly_files]   ! (optional, default 0) scalar expression



A scalar string expression representing the directory you want to delete.


A scalar expression indicating whether read-only files must be deleted without further notice (value \({}\neq{}\) 0), or whether the procedure should fail on read-only files (value 0).

Return Value

The procedure returns 1 on success. If it fails, then it returns 0, and the pre-defined identifier CurrentErrorMessage will contain a proper error message.

See also

The procedures DirectoryExists, FileDelete.