Skip to main content

Delete Oracle

Soft-deletes a price oracle: it disappears from every read. A second delete of the same oracle answers "oracle not found".

Required permission: oracle:delete

Request​

DELETE /v2/admin/oracles/{oracle_id}

Parameters​

NameTypeInDescription
oracle_idstringpathRequired. Oracle id (24-character hex)

Headers​

NameDescription
AuthorizationRequired. Bearer <access_token>

Example​

curl --request DELETE \
--url '{{baseUrl}}/v2/admin/oracles/6911b0d4e4b0f51d2c8a7e52' \
--header 'Authorization: Bearer <access_token>'

Response​

204 No Content with an empty body.

Errors​

StatusCodeDescription
40010000oracle_id is not a valid 24-character hex id
40010001Oracle not found or already deleted (domain 5)

See Errors for the error format and common codes.