hammerspoon2-docs
    Preparing search index...

    Function deletePath

    • Delete a file or directory at the given path. Directories are removed recursively. To remove only an empty directory, use rmdir instead.

      Parameters

      • path: string

        Path to delete. ~ is expanded.

      Returns boolean

      true on success, false on failure.