Documentation menu

Unset user secret

DELETEhttps://api.instacloud.com/projects/{projectId}/secrets/{name}

Token scope: account · org · project — read-only tokens refused (not a GET).

Remove a user-defined secret at project or branch scope. Gated — secrets.write.

Parameters

NameInTypeRequiredDescription
branchquerystringnoBranch name (project-scoped if omitted)
servicequerystringnoService ref "<postgres|storage|compute|redis|mysql|mongodb>/<name>" to unset the secret bound to that service; omitted = the unbound secret. Scopes the delete so a per-service key does not wipe a sibling service’s same-name value.
projectIdpathstringyes
namepathstringyes^[A-Z][A-Z0-9_]{0,63}$

Responses

200

Default Response

FieldTypeRequiredDescription
okbooleanno

202

Default Response

FieldTypeRequiredDescription
status"approval_required"no
approvalIdstringno
actionstringnothe gated action, or a comma-joined compound set — prefer `actions`
actionsstring[]noevery capability this approval covers
messagestringno
urlstringnothe console page where a project admin reviews this request
nextActionsobject[]no
nextActions.opstringyesNeutral logical action id, e.g. "service.add" — NOT an operationId or a CLI/MCP tool name; each client maps it to its own surface.
nextActions.reasonstringyesNatural-language, human/LLM-facing "why do this now".
nextActions.argsobjectnoSuggested, flat named arguments; "<placeholder>"s where a value is unknown.
nextActions.gatedbooleannoTrue if the action passes a governance gate.

403

Default Response

FieldTypeRequiredDescription
errorstringyes

404

Default Response

FieldTypeRequiredDescription
errorstringyes

View as Markdown