Delete File or Folder
nextcloud.delete
ActionFiles & storageconnection required
Calls the Nextcloud API with the connection's credentials.
Delete a file, or a folder and everything inside it. Deleting the account's files root is refused.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Username & password
- Providers
- Nextcloud
- Secret shape
- {"username": "…", "password": "<app password>"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
path Path inside the account's Nextcloud files, e.g. /Documents/report.pdf. | string | Yes | — | — | /Documents/report.pdf |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"path": "/Documents/report.pdf"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
path The path that was deleted. | string | — |
deleted True — Nextcloud removed the resource. | boolean | — |
status_code The WebDAV status Nextcloud answered with. | number | — |
{
"deleted": false,
"path": "",
"status_code": 0
}Notes
- A deleted item goes to the account's trash bin, subject to its retention.
See Delete File or Folder run in a workflow.
In a technical demo we add the Nextcloud connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.