Destroy a resource
destroy_resourceDestructiveIdempotent
Destroy a resource and all of its data, such as every table and row in a database. This cannot be undone, so confirm with the user first. A resource attached to any app is refused, and the answer names those apps: detach it from each with detach_resource, then destroy it. The provider removes it in the background. Destroying a resource that is already being removed changes nothing. Requires connecting a Valet account.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org_name | No | The Valet organization the resource belongs to. Omit to use the organization the account joined first. | |
| resource | Yes | Required. The resource's name in the organization. |