Delete Stack
Permanently delete a stack from your ToolRouter account
Overview
Permanently deletes a stack and all its associated data from your ToolRouter account. This action cannot be undone.
This action is irreversible. Deleting a stack will permanently remove all its servers, configurations, and credentials.
Endpoint
Authentication
This endpoint requires an API key. Include it in the Authorization header:
Path Parameters
The unique identifier of the stack to delete
Response
Confirmation message indicating successful deletion
Example Request
Example Response
What Gets Deleted
When you delete a stack, the following data is permanently removed:
- Stack configuration: All stack settings and metadata
- Server associations: All servers added to the stack
- Credentials: All stored credentials for servers in the stack
- Usage analytics: Historical usage data for the stack
- Secure endpoints: Any secure client endpoints created for the stack
The actual servers in the ToolRouter marketplace are not deleted - only their association with your stack is removed.
Error Responses
Invalid or missing API key
Stack not found or doesn’t belong to your account
Rate limit exceeded
Server error occurred during deletion
Best Practices
Before deleting a stack, consider:
- Backup important data: Export any important configurations or credential information
- Check dependencies: Ensure no applications are actively using this stack
- Review usage: Check if the stack has been used recently
- Alternative approach: Consider updating the stack instead of deleting it
Recovery
There is no way to recover a deleted stack. Make sure you want to permanently delete the stack before proceeding.
If you accidentally delete a stack, you will need to:
- Create a new stack with the same configuration
- Re-add all servers to the new stack
- Re-configure all credentials
- Update any applications to use the new stack