Prevent accidental deletion of critical resources with delete protection
Delete Protection is a safety feature that prevents accidental deletion of critical resources. When enabled, it blocks all deletion attempts through both the dashboard and API.
Protect your API configurations and settings from accidental deletion. This includes the API itself and its associated configuration, but not individual keys.
Always enable Delete Protection for resources running in production environments. This prevents accidents during deployments or configuration changes.Protected resources:
Production APIs
High-traffic services
Resources with external dependencies
Use for critical resources
Protect resources that contain important data or configurations that would be difficult to recreate:
APIs with complex permission configurations
Resources with many dependencies
Services that require significant setup time
Regular protection review
Periodically review which resources have delete protection:
# Audit protected resources quarterly- Check if protection is still needed- Verify production resources are protected- Remove protection from deprecated resources
Team communication
Inform team members about protected resources:
Document which resources are protected and why
Include protection status in runbooks
Communicate before enabling/disabling protection
Use clear naming conventions for protected resources
Infrastructure as Code
When using IaC tools (Terraform, etc.), ensure delete protection is part of your configuration:
resource "unkey_api" "production" { name = "production-api" delete_protection = true}