Remove all resources managed by your application from a workspace. This command deletes all deployed services, resources, and data associated with your application.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tailor-platform/sdk/llms.txt
Use this file to discover all available pages before exploring further.
Command Syntax
Options
Workspace ID to remove resources from. Can also be set via
TAILOR_PLATFORM_WORKSPACE_ID environment variable or workspace profile.Alias: -wWorkspace profile name. Profiles store workspace ID and authentication token for easy switching between environments.Alias:
-pPath to SDK config file.Alias:
-cSkip confirmation prompts and remove resources automatically.Alias:
-yCommon Options
The following common options are also available:--env-file/-e- Path to environment file (error if not found)--env-file-if-exists- Path to environment file (ignored if not found)--verbose- Enable verbose logging (show stack traces on error)
Usage Examples
Remove with Confirmation
Remove with Profile
Remove without Confirmation
What Gets Removed
Theremove command deletes resources in reverse dependency order:
- Workflows - All workflow definitions and executions
- Executors - All executor definitions and jobs
- Static Websites - All deployed static sites
- Application - The main application resource
- Resolvers - All resolver resources and services
- Auth Resources - OAuth2 clients, machine users
- Auth Services - Auth service instances
- IdP Resources - Identity provider resources
- IdP Services - Identity provider services
- TailorDB Resources - Types and data
- TailorDB Services - Database service instances
- Function Registry - Function entries
Removal Process
Step 1: Plan
The command first plans the removal by:- Loading your configuration
- Querying deployed resources
- Building a deletion plan with all resources to remove
Step 2: Confirm
Unless--yes is specified, you’ll be prompted:
- Select
yto proceed with removal - Select
Nor press Enter to cancel
Step 3: Execute
Resources are deleted in reverse dependency order to maintain referential integrity.Safety Features
No Resources Check
If no resources are found to delete, the command exits without prompting:Confirmation Required
By default, confirmation is required before deletion:Application Name Matching
Only resources owned by the application specified in your config are removed. Resources owned by other applications are left untouched.The
remove command uses application name from your tailor.config.ts to identify which resources to delete. Resources must have matching ownership labels.Authentication
Authentication token priority:TAILOR_PLATFORM_TOKENenvironment variableTAILOR_TOKENenvironment variable (deprecated)- Profile specified via
--profileorTAILOR_PLATFORM_PROFILE - Current user from platform config (
~/.config/tailor-platform/config.yaml)
Workspace ID Resolution
Workspace ID priority:--workspace-idcommand optionTAILOR_PLATFORM_WORKSPACE_IDenvironment variable- Profile specified via
--profileorTAILOR_PLATFORM_PROFILE
Common Use Cases
Clean Development Environment
Remove Staging Deployment
Remove with Environment File
Output Example
Error Handling
If removal is cancelled:Related Commands
apply- Deploy application to workspaceshow- Show deployed application infotailordb truncate- Truncate tables without removing types