Remove an item of the Organization Environment
DELETE
/api/settings/environment/{id}
const url = 'https://forge.example.com/api/settings/environment/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?version=1';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url 'https://forge.example.com/api/settings/environment/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?version=1' \ --header 'Authorization: Bearer <token>'With the query parameter version as you read it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Query Parameters
Section titled “Query Parameters”version
required
integer | string format: int32
Responses
Section titled “Responses”Done. The answer has no body.
default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}