How to delete projects in Blue.


Delete a Project

The deleteProject mutation permanently removes a project and all its associated data from Blue.

Basic Example

mutation {
  deleteProject(id: "{project-id}") {
    success
  }
}

With Variables

mutation DeleteProject($projectId: String!) {
  deleteProject(id: $projectId) {
    success
  }
}

Variables:

{
  "projectId": "abc123-project-id"
}
Project deletion is permanent. Once a project is deleted, all associated data will be permanently removed from the system. This includes:
- All todos and lists
- Comments and attachments
- Custom fields and their values
- Automations
- Tags and dependencies
- User assignments
- File attachments

Please ensure you have backed up any important information before proceeding with the deletion.

Mutation Parameters

Parameter Type Required Description
id String! ✅ Yes The unique identifier of the project to delete

Response Fields

Field Type Description
success Boolean! Indicates whether the deletion was successful

Required Permissions

To delete a project, you must have:

  1. Company-level access: OWNER, ADMIN, or MEMBER role in the company
  2. Project-level access: OWNER or ADMIN role in the specific project

Project Role Permissions

Project Role Can Delete Project
OWNER ✅ Yes
ADMIN ✅ Yes
MEMBER ❌ No
CLIENT ❌ No
COMMENT_ONLY ❌ No
VIEW_ONLY ❌ No

Deletion Process

When you delete a project, Blue performs the following steps:

  1. Validation: Verifies the project exists and you have permission to delete it
  2. Backup: Saves project data to a trash table for potential recovery (internal use only)
  3. Immediate deletion: Removes the project from the active database
  4. Notifications: Updates related systems and notifies relevant services
  5. Background cleanup: Asynchronously removes all associated data

Error Responses

Project Not Found

{
  "errors": [{
    "message": "Project not found",
    "extensions": {
      "code": "PROJECT_NOT_FOUND"
    }
  }]
}

Insufficient Permissions

{
  "errors": [{
    "message": "You are not authorized to delete this project",
    "extensions": {
      "code": "UNAUTHORIZED"
    }
  }]
}

Important Notes

  • Deletion is cascading - all project data is removed
  • The process is asynchronous - large projects may take time to fully clean up
  • Consider using archive instead of delete if you might need the project later
  • Deleted projects are saved internally for recovery purposes but are not accessible via the API

AI Assistant

Responses are generated using AI and may contain mistakes.

How can I help you?

Ask me anything about Blue or this documentation.

Enter to send • Shift+Enter for new line • ⌘I to open