Remove-DbaDbRole
Ben Miller (@DBAduck), the dbatools team + Claude
Remove-DbaDbRole View Source Ben Miller (@DBAduck), the dbatools team + Claude Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs Synopsis Removes custom database roles from SQL Server databases Description Removes user-defined database roles from SQL Server databases while protecting against accidental deletion of system roles and intelligently handling schema ownership. This function automatically excludes fixed database roles (like db_owner, db_datareader) and the public role, ensuring only custom roles created for specific security requirements can be removed.
Read more
dbatools