Delete a profile. Admins only. Refused for a built-in, and while a bundle names its key.
DELETE
/profiles/{key}
const url = 'https://example.com/api/v1/profiles/example';const options = {method: 'DELETE'};
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://example.com/api/v1/profiles/exampleParameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”key
required
string
Responses
Section titled “ Responses ”The profile is gone.
default
Section titled “default”An error.
Media typeapplication/problem+json
RFC 9457 problem details with a stable code.
object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required
A stable machine-readable error code.
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}