Usage
Basic Example
Options
Name of the service to delete
Skip confirmation prompt
Hub server URL
Config file path
Examples
Delete Without Confirmation
Delete Multiple Services
What Gets Deleted
When you delete a service:- Service registration - Removed from workspace
- Active tunnels - All tunnels to this service are terminated
- Port mappings - Custom port mappings are cleared
- Public URLs - Public links are revoked
- Share links - Shares including this service are updated
Deleting a service does not stop the underlying application. It only removes the Private Connect tunnel.
Impact on Other Users
When you delete a service that others are connected to:- Active connections drop - Tunnels close immediately
- Shared environments - Service removed from shares
- Clone configurations -
.envfiles become outdated
Recreating a Service
To recreate a deleted service with the same name:Common Use Cases
Cleanup After Development
Rename a Service
Services cannot be renamed directly. Delete and recreate:Remove Abandoned Services
When a machine is decommissioned:Bulk Deletion
For deleting multiple services programmatically, use the API:Related Commands
connect expose- Create services- Services API - Programmatic service management
- Tunnels API - Manage tunnels
Exit Codes
0- Success (service deleted)1- Error (service not found, permission denied)2- User cancelled (when prompted)