Skip to content

Defederate a peer

DELETE
/admin/federation/peers/{id}

Removes the peer row. Per ADR 0043 §“Trust model” the federation_shares table cascades on this delete and the server emits the final aa:Unshare activity to the peer so they purge their local cache. Cascade + activity emission happen automatically when those phases ship; this endpoint is the entry point.

id
required
string format: uuid

Peer removed.

Authentication required, missing, or invalid

object
error
required

Human-readable error summary

string
Example
the request could not be completed
Example
{
"error": "authentication required: sign in and retry with a valid session or API token"
}

Authenticated but missing required capabilities

object
error
required

Human-readable error summary

string
Example
the request could not be completed

Resource not found

object
error
required

Human-readable error summary

string
Example
the request could not be completed