Delete Asset
contentful.delete_asset
ActionBusiness appsconnection required
Calls the Contentful API with the connection's credentials.
Permanently delete an asset; it must be unpublished first.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- Contentful
- Secret shape
- the CMA access token, or {"access_token": "…"}
- Config it needs
- space_id, environment_id, base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 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 |
|---|---|---|---|---|---|
asset_id The id of the asset to act on. | string | Yes | — | — | — |
space_id The space to act on. Leave blank to use the connection's space. | string | No | — | — | — |
environment_id The environment to act on. Leave blank to use the connection's environment, or 'master'. | string | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
deleted Always true; Contentful answers a delete with an empty 204. | boolean | — |
id The id of the entity that was deleted. | string | — |
type The kind of entity that was deleted. | string | — |
space_id The space it was deleted from. | string | — |
environment_id The environment it was deleted from. | string | — |
{
"deleted": false,
"environment_id": "",
"id": "",
"space_id": "",
"type": ""
}See Delete Asset run in a workflow.
In a technical demo we add the Contentful connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.