Skip to main content

delete_account

Function delete_account 

Source
pub(crate) async fn delete_account(
    __arg0: State<AppState>,
    headers: HeaderMap,
    __arg2: XrpcBody,
) -> Response
Expand description

POST /xrpc/bot.did.deleteAccount

Credential::AccountSelf: a harness client calls this directly to erase an account at the end of a session, carrying that account’s own write credential — the self-service case auth::require_self exists for, and the only case, since this server holds no credential that could authenticate somebody acting on another account. The repository, its blobs and its credentials go and the name is burned; the DID document, its key and the account’s row stay, decommissioned, so every signature the agent made stays checkable. Refused with 403 AccountLocked while any lock hangs and 403 AccountHeld under an operator’s hold.