Appendix: Workspace deletion procedure
Important
Deleting a workspace and its associated resources is irreversible. Before starting, confirm that you no longer need the datasets, imported and enriched data, pipeline executions, pipelines, tasks, application, or time series.
Delete all resources within the workspace before deleting the workspace itself. For every
List* operation, paginate through all results before proceeding to the next
step.
Step 1: Cancel or wait for enrichment jobs to finish
-
Call
ListEnrichmentJobsfor each dataset in the workspace. -
For every ongoing enrichment job, call
CancelEnrichmentJob. -
Use
DescribeEnrichmentJobto verify that each job reaches a terminal state (COMPLETED,FAILED,TIMED_OUT, orCANCELLED).
Step 2: Wait for bulk import jobs to finish
-
Call
ListBulkImportJobsfor each dataset in the workspace. -
Bulk import jobs do not have a cancellation operation. Wait for every ongoing bulk import job to reach a terminal state before continuing.
-
Use
DescribeBulkImportJobto check job status when needed.
Step 3: Delete pipeline executions, pipelines, and tasks
-
Call
ListPipelineExecutionsto identify pipeline executions in the workspace. -
Delete each pipeline execution by calling
DeletePipelineExecution. -
Call
ListPipelines, and delete each pipeline by callingDeletePipeline. -
Call
ListTasks, and delete each task by callingDeleteTask.
Step 4: Delete curated datasets
-
Call
ListDatasetsto identify Curated Datasets. -
For each Curated Dataset, call
ListDatasetDataSegments. -
Remove the data-segment associations by calling
BatchDisassociateDataSegmentsFromDataset. -
Delete the Curated Dataset by calling
DeleteDataset.
Step 5: Delete session datasets
-
Call
ListDatasetsto identify the remaining Session Datasets. -
Verify that no ongoing enrichment or bulk import jobs reference each Session Dataset.
-
Delete each Session Dataset by calling
DeleteDataset.
Step 6: Delete time series
-
Call
ListTimeSeriesto identify time series in the workspace. -
Remove any resource associations that prevent deletion.
-
Delete each time series by calling
DeleteTimeSeries.
Step 7: Delete the application
Each workspace currently supports at most one application. Delete the application by
calling DeleteApplication.
Step 8: Delete the workspace
-
Optionally, call
ListWorkspacesto verify the workspace you want to delete. -
Call
DeleteWorkspaceonly after all associated resources have been deleted.
Post-deletion behavior
DeleteWorkspace is asynchronous. During the deletion workflow, the service
automatically removes workspace-owned metadata and applied tags — no separate cleanup API is
required. After the deletion workflow completes, the workspace no longer counts against the
workspace quota for your account and Amazon Region.