def pr_delete_role(role_id):
 resource = current.s3db.resource('pr_role', id=role_id)
 return resource.delete()

def pr_delete_role ( role_id ) : resource = current . s3db . resource ( 'pr_role' , id = role_id ) return resource . delete ( )
back-end method to delete a role .