delete command removes a deployment immediately, rather than waiting for it to expire naturally.
This command requires authentication. Run
sher login first.Usage
Arguments
The deployment ID to delete. This is the subdomain part of your sher.sh URL.For example, if your deployment URL is
https://abc123.sher.sh, the ID is abc123.Examples
Delete by ID
Get ID from list command
First, list your deployments to find the ID:Error Handling
Missing deployment ID
If you don’t provide a deployment ID:Not logged in
If you’re not authenticated:Deployment not found
If the deployment doesn’t exist or doesn’t belong to you:Use Cases
Remove outdated previews
Delete old deployments that are no longer needed:Quickly iterate
Delete and recreate a deployment when testing:Manage rate limits
Free up deployment slots if you’ve hit the rate limit and need to create new links:Related Commands
sher list- View all your active deploymentssher login- Authenticate with GitHubsher link- Create a new deployment