Deleting a workspace is supported nativley in LangSmith Self-Hosted v0.10. View instructions for deleting a workspace.Follow the guide below for Self-Hosted versions before v0.10.
Prerequisites
Ensure you have the following tools/items ready.- kubectl
- PostgreSQL client
- 
PostgreSQL database connection:
- Host
- Port
- Username
- If using the bundled version, this is postgres
 
- If using the bundled version, this is 
- Password
- If using the bundled version, this is postgres
 
- If using the bundled version, this is 
- Database name
- If using the bundled version, this is postgres
 
- If using the bundled version, this is 
 
- 
Clickhouse database credentials
- Host
- Port
- Username
- If using the bundled version, this is default
 
- If using the bundled version, this is 
- Password
- If using the bundled version, this is password
 
- If using the bundled version, this is 
- Database name
- If using the bundled version, this is default
 
- If using the bundled version, this is 
 
- 
Connectivity to the PostgreSQL database from the machine you will be running the migration script on.
- If you are using the bundled version, you may need to port forward the postgresql service to your local machine.
- Run kubectl port-forward svc/langsmith-postgres 5432:5432to port forward the postgresql service to your local machine.
 
- 
Connectivity to the Clickhouse database from the machine you will be running the migration script on.
- If you are using the bundled version, you may need to port forward the clickhouse service to your local machine.
- Run kubectl port-forward svc/langsmith-clickhouse 8123:8123to port forward the clickhouse service to your local machine.
 
- Run 
- If you are using Clickhouse Cloud you will want to specify the —ssl flag and use port 8443
 
- If you are using the bundled version, you may need to port forward the clickhouse service to your local machine.
- 
The script to delete a workspace
- You can download the script from here
 
Running the deletion script for a single workspace
Run the following command to run the workspace removal script:Connect these docs programmatically to Claude, VSCode, and more via MCP for    real-time answers.