Asana - Delete Task
↩ Part of the Asana integration.
Description
Section titled “Description”Deletes a task (DELETE /tasks/{gid}). Use it to clean up duplicates created by an integration, or to remove work items that a cancellation upstream made irrelevant.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
credentials_id | credentials | Yes | Asana credential |
task_gid | text | Yes | gid of the task to delete |
task_gid accepts dynamic variables.
Credentials
Section titled “Credentials”This module requires an Asana credential:
| Field | Description |
|---|---|
access_token | Personal Access Token from app.asana.com |
default_workspace_gid | Optional fallback workspace |
Output
Section titled “Output”Asana returns an empty body, so the node returns a confirmation object:
{ "gid": "1209876543210987", "deleted": true}Along with it, _meta:
{ "moduleVersion": "1.0.0", "success": true, "gid": "1209876543210987", "totalMs": 210 }Usage Example
Section titled “Usage Example”Delete a known task
Section titled “Delete a known task”{ "credentials_id": "asana_ops", "task_gid": "1209876543210987"}Delete the task from a previous node
Section titled “Delete the task from a previous node”{ "credentials_id": "asana_ops", "task_gid": "{{data.gid}}"}- Deleted tasks go to Asana’s Deleted items for 30 days before being purged, so an accidental delete can be recovered from the Asana UI within that window.
- Subtasks of the deleted task are deleted with it.
- A
404means the task no longer exists — safe to treat as “already gone”, but note the node still returns anerrorand stops the branch. Guard the node with a condition if a missing task is an acceptable outcome. - Deleting requires write permission on the task; otherwise Asana answers
403. Neither403nor404is retried.
Related Nodes
Section titled “Related Nodes”- Asana: Update task — close the task instead of deleting it.
- Asana: Get task — check the task exists before deleting.
- Asana: List tasks — find the tasks to clean up.