Skip to content
shadwshadw/Docs
GuidesAPIGetting Started
Dashboard
shadw REST APIOverviewErrors
  • GETGet project settings
  • POSTSet an environment variable
  • DELDelete an environment variable
  • DELDelete a project
APIs & SDKs/shadw REST API/Delete an environment variable

Delete an environment variable

DELETEhttps://api.shadw.cloud/v1/projects/{project}/env/{key}

Remove an environment variable from a project. Returns the project's remaining settings.

Authentication

AuthorizationbearerToken

A platform API key (hive_…, created under Settings → API Keys) or a JWT of at most 1 hour from POST /v1/token, which is server-only once HIVE_JWT_SECRET is set. An API key scopes the request to the team it was created under.

Path parameters

projectstringRequired

The project name.

keystringRequired

The variable name to delete.

ts
const response = await fetch('https://api.shadw.cloud/v1/projects/{project}/env/{key}', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY', // hive_… (Settings → API Keys)
  },
});

const data = await response.json();
console.log(data);
Response
json
{
  "env": []
  /* …the project's other settings, as in Get project settings */
}