MailMasker API
Claude Code
Users and roles

Delete a role

DELETE/api/v1/admin/roles/:name

Who can use this: Site adminsAs Markdown

The role goes completely: every account that had it loses it at once, along with the permissions it carried.

Parameters

NameWhereWhat it is
name required path The role's name.e.g. auditor

Good to know

  • The built-in user, site_admin and system_agent roles are protected; deleting one answers 400.
  • An unknown role answers 404.