Skip to main content
DELETE
/
api
/
v2
/
public
/
env
/
values
/
:value_id
curl -X DELETE "https://app.refold.ai/api/v2/public/env/values/{value_id}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID"
{
  "status": "success",
  "message": "Variable value for \"API_SECRET\" deleted successfully"
}
Hard-delete a variable value document by its ID. For linked-account-scoped values, linked-account auth is verified.

Authentication

x-api-key
string
required
Your Refold API key.
linked_account_id
string
Required for linked-account-scoped values.
For linked-account-scoped values you may instead authenticate with a session token (Authorization: Bearer ...).

Path Parameters

value_id
string
required
The value document ID (returned by Set Variable Value).

Response

status
string
success.
message
string
Confirmation message.
{
  "status": "success",
  "message": "Variable value for \"API_SECRET\" deleted successfully"
}
curl -X DELETE "https://app.refold.ai/api/v2/public/env/values/{value_id}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID"