whodb_platform_delete
Delete hosted platform resources such as secrets, datasets, files, folders, functions, and apps through the selected project. Returns a confirmation token before destructive deletion for approval.
Instructions
Delete a hosted platform resource through the selected project.
Supported resources: secret, ai_provider, ontology, ontology_fast_lookup, ontology_reference, dataset, transform, file, folder, function, app, lineage_provider, source_object. This is destructive. Pass id for normal resources. For source_object, pass payload_json with sourceId, ref, and values. Default mode returns a confirmation token; explain exactly what will be deleted and do not call whodb_platform_confirm until the user approves the preview. Permission checks are enforced by the hosted platform. Accepts workspace {host, org, project} for per-call targeting without changing defaults.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Resource id for update, delete, or action operations | |
| action | No | Action name for whodb_platform_action, for example deploy, run, rename, move, promote_to_dataset | |
| payload | No | Structured mutation payload. Do not include projectId or the target id; the selected workspace and id are injected by the CLI. | |
| resource | Yes | Resource type, for example secret, ai_provider, ontology, dataset, transform, folder, file, function, source_object | |
| workspace | No | Optional target for this call only. Omit to use the session default set by whodb_platform_session_use, then process/saved defaults. Discover targets with whodb_platform_hosts, whodb_platform_orgs and whodb_platform_projects. | |
| payload_json | No | Legacy JSON object payload. Prefer payload; projectId and id are filled from selected workspace/id when appropriate. | |
| idempotency_key | No | Stable caller-provided key. Repeating a successful write with the same key will not execute it again. |