Spec-Zone.ru › ColdFusion

directoryDelete

Deletes on-disk or in-memory directory at the given path. NOTE: Ensure that you have the required permissions to run this function.

directoryDelete(path[, recurse]) → returns void

  • CF9+
  • Lucee
  • BL 1.0.0+
  • See Also: directoryCreate directoryRename fileDelete

    Argument Reference

    path string
    Required

    Absolute path of the directory to be deleted. Alternatively, you can specify IP address, as in the following example: DirectoryDelete("//12.3.123.123/c_drive/test");.

    recurse boolean
    Default: false

    If true, the directory and the sub-directories are deleted. If the directory (being deleted) has sub-directories and you set recurse to false, an exception occurs.

    Examples
    Sample code invoking the directoryDelete function

    Tag Syntax

    <cfset delDirectory = "someDirPath" />
    <cfset recurse = true />
    <cfset directoryDelete(delDirectory,recurse)>

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/directorydelete

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API