delete_path
Delete files or folders, including all folder contents, from a project disk. Preview deletion first with confirm_required, then repeat with confirm=true; this cannot be undone.
Instructions
Delete files/folders (folders with all contents) on a project disk. Send every path for the request in one call: without confirm it returns what would be deleted (confirm_required) for the user to approve once; repeat with confirm=true. Cannot be undone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | All files/folders to delete for this request, approved together. Folders are deleted with all contents. | |
| confirm | No | false (default) returns the full list for the user to approve once; true performs it. | |
| desk_id | No | ||
| desk_url | No | Link to the Constructor desk the user copied from the browser, e.g. https://constructor.app/research/projects/<project>/desks/<desk>/viewer/file. Supplies project_id and desk_id; ask the user for it instead of choosing a project or desk yourself. | |
| project_id | No |