Skip to main content
err:unkey:application:protected_resource
You tried to delete something that has delete protection turned on. Nothing was deleted. You get HTTP 412.
Example response

Likely causes

  • You called apis.deleteApi, apps.deleteApp, or projects.deleteProject on a resource with delete protection on. The message names the resource type.

How to fix

  1. Make sure you really mean to delete it. Deleting an API from the dashboard also deletes its keyspace and every key in it. Deleting a removes its apps, environments, and deployments.
  2. Turn off delete protection in the dashboard, or with the resource’s update endpoint where it has the setting. See Delete protection for where the switch is.
  3. Delete it again.
Turning protection on or off is recorded in the audit log.
Last modified on October 22, 2026