<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def del_role(self, role):
 """ deletes a group """

        target = AuthGroup.objects(role=role, creator=self.client).first()
        if target:
            target.delete()
            return True
        else:
            return False