Trash
Restore a deleted project, dataset version, training, or workflow within 30 days of deletion.
About
Deleted projects, dataset versions, trainings, and workflows are moved to your workspace Trash for 30 days before they are permanently removed. You can restore an item from Trash at any time within the 30-day retention window, or permanently delete it immediately if you are certain you do not need it.
Web App
Open the Trash
Navigate to Settings in your workspace and select Trash from the sub-navigation. The page lists every deleted project, version, training, and workflow grouped by type, along with who deleted each item, when it was deleted, and how many days remain before permanent cleanup.
Restore an item
Click Restore on a single row to restore that item, or use the checkboxes to select multiple items and click Restore to restore them all at once. Restore All restores every item in the workspace Trash.
Restored items immediately reappear in the workspace in the same location they were deleted from. Dataset versions can only be restored while their parent project is still active. If the parent project is also in Trash, restore the project first and then restore its versions. The same applies to trainings: restore the parent project and version first.
Delete an item permanently
To skip the 30-day retention window and remove an item right away, click Delete Permanently on a single row, or select multiple items and click Delete Permanently. Empty Trash removes everything in the workspace Trash at once. Permanent deletion cannot be undone.
Permanent deletion is available only from this page in the web app. It is not exposed on the REST API, Python SDK, or CLI so that a stray script or automation cannot irrecoverably destroy data.
What happens when you delete
When a project, version, training, or workflow is deleted:
The item is hidden from the workspace and from all API listings.
Any in-flight training jobs for the item are cancelled automatically so you do not keep spending credits on something you are deleting.
For projects, the version's trained models stop serving.
For trainings, the models produced by that run are hidden too, and the version's
{project}/{version}model ID may switch to another model.Storage for the item still counts toward your workspace plan until the 30-day retention window expires or you permanently delete it.
If you checked "Also delete images from Asset Library" when deleting a project, an amber indicator on the Trash row shows that images belonging only to that project will also be removed when the project is permanently cleaned up. Images shared with other projects are always preserved.
Who can use the Trash
Access to the Trash and its actions is controlled by role-based access control. The default Owner role grants all trash permissions. You can assign individual trash permissions (view_trash, trash_dataset, restore_dataset, trash_version, restore_version, trash_training, restore_training, delete_training, trash_workflow, restore_workflow) to custom roles from your workspace's Role-Based Access Control settings.
HTTP API
Items you delete through the API go to Trash, the same as in the web app. Permanent deletion is only in the web app, so a script or automation cannot remove data for good. Items left in Trash are removed after the 30-day retention window.
Move a Project to Trash
Any training in progress on the Project is canceled.
Moves a project to Trash and cancels any training in progress on it. Requires project:update.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Successful response.
Always true.
Workspace URL slug.
Project URL slug.
Project ID. Pass it as the restore id.
Always true: the project is in Trash, not permanently deleted.
The request is invalid.
Authentication is missing or invalid.
The project belongs to another workspace.
The resource does not exist or is not accessible.
The request rate is too high.
DELETE /{workspace}/{project} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"deleted": true,
"type": "project",
"workspace": "my-workspace",
"project": "my-detector",
"projectId": "d_abc123",
"trash": true
}Move a Version to Trash
Any training in progress on the version is canceled.
Moves a dataset version to Trash. Any training in progress on the version is canceled. Requires version:update.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Dataset version number.
Successful response.
Always true.
Workspace URL slug.
Project URL slug.
Project ID. Pass it as the restore parentId.
Version number. Pass it as the restore id.
Always true: the version is in Trash, not permanently deleted.
The request is invalid.
Authentication is missing or invalid.
The version belongs to another workspace.
The resource does not exist or is not accessible.
The request rate is too high.
DELETE /{workspace}/{project}/{version} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"deleted": true,
"type": "version",
"workspace": "my-workspace",
"project": "my-detector",
"projectId": "d_abc123",
"version": "3",
"trash": true
}Move a Workflow to Trash
Moves a Workflow to Trash. Requires workflow:update.
Roboflow API key or OAuth access token.
Workspace URL slug.
Workflow URL slug.
Successful response.
Always true.
Workspace URL slug.
Workflow URL slug from the request.
Workflow ID. Pass it as the restore id.
Always true: the Workflow is in Trash, not permanently deleted.
The request is invalid.
Authentication is missing or invalid.
The Workflow belongs to another workspace.
No Workflow with this URL slug exists in the workspace.
The request rate is too high.
DELETE /{workspace}/workflows/{workflowId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"deleted": true,
"type": "workflow",
"workspace": "my-workspace",
"workflow": "slow-webhooks",
"workflowId": "wf_abc123",
"trash": true
}List items in Trash
Each item carries the type, id, and parentId values you pass to restore it.
Lists the projects, dataset versions, Workflows, and trainings in the workspace Trash that are still inside the 30-day retention window. Requires project:read. With an OAuth token, the user also needs permission to view Trash.
Roboflow API key or OAuth access token.
Workspace URL slug.
Successful response.
The request is invalid.
Authentication is missing or invalid.
The OAuth user does not have permission to view Trash.
The resource does not exist or is not accessible.
The request rate is too high.
GET /{workspace}/trash HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"type": "project",
"id": "d_abc123",
"name": "My Detector",
"url": "my-detector",
"projectType": "object-detection",
"annotation": "vehicles",
"icon": null,
"iconOwner": null,
"iconHasAnnotation": false,
"cleanupDeleteImages": false,
"deletedAt": "2026-04-20T17:05:33.000Z",
"scheduledCleanupAt": "2026-05-20T17:05:33.000Z",
"deletedBy": "uid-of-user",
"deletedByName": "Alice"
},
{
"type": "version",
"id": "3",
"name": "augmented-416",
"parentId": "d_xyz789",
"parentName": "My Other Project",
"parentUrl": "my-other-project",
"parentInTrash": false,
"deletedAt": "2026-04-21T12:14:02.000Z",
"scheduledCleanupAt": "2026-05-21T12:14:02.000Z",
"deletedBy": "uid-of-user",
"deletedByName": "Bob"
}
],
"sections": {
"projects": [],
"versions": [],
"workflows": [],
"trainings": []
}
}Restore an item
Restore parents before children: a version needs its project out of Trash, and a training needs both its project and its version. The item reappears where it was deleted from.
Restores one item from Trash to where it was deleted from. Take type, id, and parentId from the item in the Trash list. The required scope depends on type: project:update for a project, version:update for a version or training, and workflow:update for a Workflow. The item must belong to the workspace in the URL.
Roboflow API key or OAuth access token.
Workspace URL slug.
Kind of item to restore.
The item's id from the Trash list. For a version, the version number.
Required for a version: the parentId (project ID) from the Trash list.
Successful response.
Always true.
Kind of item restored.
ID of the item restored.
type or id is missing, type is not supported, parentId is missing for a version, the item is not in Trash or is past retention, or its parent project or version is still in Trash.
The API key does not have the scope this type needs.
The item belongs to another workspace, or the OAuth user cannot restore it.
The item does not exist.
The training is already being permanently deleted and cannot be restored.
The request rate is too high.
POST /{workspace}/trash/restore HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"type": "version",
"id": "3",
"parentId": "d_abc123"
}{
"restored": true,
"type": "version",
"id": "3"
}Python SDK
Projects and dataset versions deleted through the Python SDK are moved to the workspace Trash and retained for 30 days before being permanently cleaned up. Within the retention window you can restore them back to the workspace.
Any in-flight training jobs for a project or version are cancelled automatically when it is moved to Trash, so you don't continue spending credits.
Delete a Project
The project is immediately hidden from the workspace project list and appears in the Trash view under Settings → Trash.
Restore a Project
If you still have a reference to the Project object, call restore() on it:
The SDK looks up the project in the workspace Trash by its slug and restores it. RuntimeError is raised if the project isn't currently in Trash.
Delete a Version
Move a single dataset version to Trash. Any in-flight training on the version is cancelled.
Restore a Version
The parent project must still be active (not itself in Trash) to restore a version. Restore the project first if necessary.
List Items in Trash
Use Workspace.trash() to see what's currently in the workspace Trash:
trash["sections"] groups the same items by projects, versions, and workflows for convenience.
Restore by ID
If you don't already have a Project or Version handle (for example, you're restoring something that was deleted in a previous session), use Workspace.restore_from_trash() with the id returned by trash():
For versions, pass the parent project id:
Workflows
The SDK doesn't currently expose a Workflow object, but you can soft-delete a workflow via the low-level rfapi helper and restore it with Workspace.restore_from_trash("workflow", ...):
Permanent Deletion
Permanent deletion is intentionally not available from the SDK - the actions to empty Trash and to immediately delete a single Trash item destroy data irrecoverably, and we don't want a stray script to be able to trigger them. These actions are available only through the Trash view in the Roboflow web app, which has an explicit confirmation dialog.
Items left in Trash are cleaned up automatically after the 30-day retention window, so you rarely need to act on them manually.
CLI
Projects, dataset versions, and workflows can all be moved to the workspace Trash, where they are retained for 30 days before being permanently cleaned up. Within the retention window you can restore them back to the workspace.
Any in-flight training jobs associated with a project or version are cancelled automatically when it is moved to Trash, so you don't continue spending credits on an item you're deleting.
Delete a Project
Move a project to Trash:
Example:
The command prompts for confirmation before moving the project. Pass --yes (or -y) to skip the prompt for scripted use:
Restore a Project
Example:
The CLI looks the project up in the workspace Trash by its slug and restores it. If the project isn't currently in Trash, the command exits with an error.
Delete a Version
Move a single dataset version to Trash. Any in-flight training on the version is cancelled.
Example:
Pass --yes to skip confirmation.
Restore a Version
Example:
The parent project must still be active (not itself in Trash) - restore the project first if necessary.
Delete a Workflow
Move a workflow to Trash:
Example:
Pass --yes (or -y) to skip the confirmation prompt. You can pass either the workflow URL slug or its Firestore id.
Restore a Workflow
Example:
List Items in Trash
List everything currently in the workspace Trash:
For structured output suitable for scripting:
Permanent Deletion
Permanent deletion is intentionally not available from the CLI or SDK - emptying Trash and immediately deleting a single Trash item destroy data irrecoverably, and we don't want a stray script or typo to be able to trigger them. These actions are available only through the Trash view in the Roboflow web app, which has an explicit confirmation dialog.
Items left in Trash are cleaned up automatically after the 30-day retention window, so you rarely need to act on them manually.
MCP Server
Connect your AI agent to the MCP Server and it can restore something you deleted with these tools:
trash_list
List soft-deleted items currently in the workspace Trash.
trash_restore_project
Restore a deleted project.
trash_restore_version
Restore a deleted dataset version.
trash_restore_workflow
Restore a deleted Workflow.
trash_restore_training
Restore a deleted training run.
Last updated
Was this helpful?