code: def revoke_admin_privileges(self, username):
          
          text = "REVOKE ALL PRIVILEGES FROM {0}".format(quote_ident(username))
          self.query(text, method="POST")
docs: Revoke cluster administration privileges from a user.
  
          :param username: the username to revoke privileges from
          :type username: str
  
          .. note:: Only a cluster administrator can create/ drop databases
              and manage users.