Guilds

Leave guild

Removes the current user from the specified guild membership. When delete_messages is true, the caller's authored messages in the guild are deleted before leaving; that path requires sudo mode verification.

delete/users/@me/guilds/{guild_id}

Path parameters

string snowflake required
OR
integer required

The ID of the guild

Query parameters

delete_messagesstring

Also delete every message the caller has authored in the guild before leaving

Also delete every message the caller has authored in the guild before leaving

Request body

passwordstring
mfa_method'totp' | 'webauthn'

MFA method to use for verification

mfa_codestring

MFA verification code from an authenticator app

webauthn_challengestring

WebAuthn challenge string

Response

No Content

Changes