RoleModel::deleteID PHP Method

deleteID() public method

Delete a role.
public deleteID ( integer $roleID, array $options = [] ) : boolean
$roleID integer The ID of the role to delete.
$options array An array of options to affect the behavior of the delete. - **newRoleID**: The new role to point users to.
return boolean Returns **true** on success or **false** otherwise.
    public function deleteID($roleID, $options = [])
    {
        $result = $this->deleteAndReplace($roleID, val('newRoleID', $options));
        return $result;
    }