POST
/ratchet/admin/privacy/erase
const url = 'http://localhost:8000/ratchet/admin/privacy/erase';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '"example"'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/ratchet/admin/privacy/erase \ --header 'Content-Type: application/json' \ --data '"example"'Erase stored examples for good (privacy.erase): by client, end_user (in client’s scope, or with no client
in every API key’s scope, every scope the ledger holds end users in and the keyless one), hashes and contains,
each narrowing the scope; reason is required. A dry run unless dry_run is false. Needs an admin key (open in
mock mode without admin keys, like the other management calls).
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Body
Example generated
exampleResponses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Admin Erase Ratchet Admin Privacy Erase Post
object
Example generated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}