Detach a resource from an app
detach_resourceDetach a resource from an app: remove the environment variables it set and, if the app is running, ask for a restart so its next process starts without them. The state is detached when that is done, and detaching while Valet still owes the restart or the removal, which it keeps trying; the answer gives the reason. The running process keeps the variables until it is replaced. A variable whose value is not the one the resource set stays on the app, and the answer names it. The resource itself and its data are unchanged, and other apps that hold it keep it. Detaching a resource that is not attached changes nothing. Requires connecting a Valet account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Required. The app's name. | |
| org_name | No | The Valet organization the app belongs to. Omit to use the organization the account joined first. | |
| resource | Yes | Required. The resource's name in the organization. |