---
id: config-delete-sandbox-org
title: "Delete sandbox organisation"
description: "Deletes one sandbox organisation of the organisation. Give the sandbox organisation ID in the path. The service removes the wallet of the sandbox organisation and all the data in it."
sidebar_label: "Delete sandbox organisation"
hide_title: true
hide_table_of_contents: true
api: eJztV21P20gQ/iuj+QSSSQKl0smqqgNCe2mrAx0BdKJIbOxJvMXedXfXgVzk/36aXSdxgunpPrf5kDjeeX97ZpeYkk2MLJ3UCmMcUk6OLGhFYIVKJ/oZtJkJJa1gEtBTcBltvevBRzkn/7qTZTQEqfxxKVzWgzETkpnLhMBQoedk/emTyHNyKw2dooRKQeS5J0iFEyxYut5X9VX9rStIhFLaQeqd8ESFkKoR3INRkDyTcwpW2V2aKKhujGNCC3+Mx5dwPBh4LSdTRyaoZyVSqwiEgpPLETzSAlwmHIud6Eql4DS4TNpuV5SGXKsZGTBkdc6axNrSU8nsGW0EaxCQyumUDCnXKTECbYLKHZeepMvg4fJ6DP1Eq6mc9UVaSNUXpXykRX8pSvmZFqO07jdiD7SZPfQwQl2S8bJHKcYYmEOFXAXKCzPDCEthREGOjMX4brlTUddKfq8IZErKyakk86MEs1LJXFwpGKESBWGMdq1tlGKEhr5X0lCKsTMVRWiTjAqB8RLdovT0zkg1w7q+Z2JbamXJ8vnR4Jh/ti1s12MonfR1A331rmRCJiwncqLTBZuekUh9FJZ1HeHxYMDKEq0cKcePoixzmXhB/W+WlS9bxm/cukMyRpsznRJG4XnYMvk+WjmqJ98ocZwCw7lyMri54d7ERCpHMzIs71kUZU4YHw8GdYf4F3FsseCpSEGqsnKwzjrW/Ik6ovrDThNNia9Cv9280nUF9PAnDui1EpXLtJH/UNoRmuOfODTjHURa9WXn4PXj0M/l0fBljb39qZt2pBwZJXLflGTAq9mJUR2hpaQy0i38uD/x8IHx3X0dLfGUhCFzUrnMv2GvxYxxAYdyJp3I4TbA/N5FSWo0PL4528cIGzwhy3EqyGWaESfMAo8wLA/786MVhLWgqr9s40ONbB9b34VGQyp04xxGWJkcY8ycK23c76dU6ANRyp6cGaFcT2pkj7YFXBqdVokvpFfE/JeEKydmUs1eY7fheNeQ+03Ur7j4Qs2sYr9OfsDyFYqGtG1w9KQZIL6YcTf5q12DxwyDddJCvLnIK1oh98OWnAcIaqCorIMJQWloKp8pbRaPYCM8wJ7SzVbmjJC5j0EpEtqPgHqz3o7YGBrGdwtdGQ7HwSMt3j/0sI62qmyJE//vgzaFcBjjp9vxS9+ShKwFpx9JQSmsXZkXJDU28zq5ZQSsI+g7nmMYlOG6mzlvyE0h1VSvRodI/OigQkjOra3KUhv3+yaf65TIj5tX24XQrqEdb9ZMUBo9l6nfHRPN3c7Qyb8FKbe1sYd2g6k2cENGTqWY5ARnhvxiJnILI2sroRKCvQvfl6N9j9HdjJeG7FrFupcv99kipxOdWy4caf0GS4p5bDOHQ2g5GSCtrSiCTOdpWAjmrGEBaTMrkpZ5lfUV44RKhUntgfdXCuVgmusnG9LZRNpbe/vmDG7OYO/T7Xg/gtH5+ANcDQ8+3Y7h5ixoG11dwOFvg8M3B2+hGOqkXwy/tHSylEI4yyiRy4SU9bN51UylSDKCo97gReqenp56wh/3eD41vLb/ZXR2/ufV+QHz1BE66fKtGvDBSnVSrbOHEfIkC2k/Ghwd9970Dpm31NYVQrXsCYt5J+bttkML337d+H7d+Fo3vmaoOXp2/TIXUnGt+eJeNiB8h/MjjJrLIA/GjQSMMN66qt1HmGnrmGm5nAhL1yava379vSLjd4YI58L4kRLQWlp+TjGeitzSD+p2769m89qH/33F7PRyhaCK4dPjHcaIET4ywG5fQev7erUTeasDCWNM6VrMLzbHur3cDM+/nI/PMULRwNgGwh89hDcPrKDTtl00D1bwNy8dnSzvuLo+0+L9mjycvMqwxr9AzZG6r+v6X/uVWbY=
sidebar_class_name: "delete api-method"
info_path: docs/openid4vc-api/igrant-io-api-documentation
custom_edit_url: null
---

> **Build this with an AI coding agent.** Install the iGrant.io Agent Skills, then ask your agent to build the integration:
>
> ```bash
> npx skills add L3-iGrant/skills
> ```


import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<h1 className={"openapi__heading"}>Delete sandbox organisation</h1>

<MethodEndpoint method={"delete"} path={"/v2/config/sandbox-org/{sandboxOrgId}"}></MethodEndpoint>



Deletes one sandbox organisation of the organisation. Give the sandbox organisation ID in the path. The service removes the wallet of the sandbox organisation and all the data in it.

You cannot delete the main wallet. If the given ID is the main wallet, the service gives HTTP 400.

After the deletion, an API key that is bound to this sandbox organisation no longer resolves a wallet. Bind the API key to a different sandbox organisation, or to the main wallet, with `PUT /config/admin/apikey/{apiKeyId}/sandbox-org`.

## Request

<details style={{"marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collapsed={false} open={true}><summary style={{}}><h3 className={"openapi-markdown__details-summary-header-params"}>Path Parameters</h3></summary><div><ul><ParamsItem className={"paramsItem"} param={{"description":"Unique identifier of the sandbox organisation.","in":"path","name":"sandboxOrgId","required":true,"schema":{"type":"string"}}}></ParamsItem></ul></div></details><div><div><ApiTabs label={undefined} id={undefined}><TabItem label={"204"} value={"204"}><div>

The service deleted the sandbox organisation. The response has no body.

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div></div></TabItem><TabItem label={"400"} value={"400"}><div>

The given ID is the main wallet, and the service cannot delete it.

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"401"} value={"401"}><div>

Unauthorized

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"404"} value={"404"}><div>

The organisation has no sandbox organisation with this ID.

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"500"} value={"500"}><div>

Internal server error

</div><details style={{"textAlign":"left","marginBottom":"1rem"}} className={"openapi-markdown__details"} data-collaposed={true} open={false}><summary style={{}}><strong>Response Headers</strong></summary><ul style={{"marginLeft":"1rem"}}></ul></details><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><SchemaItem collapsible={false} name={"errorCode"} required={true} schemaName={"integer"} qualifierMessage={undefined} schema={{"type":"integer","example":400}}></SchemaItem><SchemaItem collapsible={false} name={"errorDescription"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","example":"Bad input parameter"}}></SchemaItem></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"{\n  \"errorCode\": 400,\n  \"errorDescription\": \"Bad input parameter\"\n}"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem></ApiTabs></div></div>
      