public function delete($request, $match)
    {
        $model = Pluf_Shortcuts_GetObjectOr404('User_Role', $match['id']);
        $model2 = new User_Role($match['id']);
        if ($model->delete()) {
            return new Pluf_HTTP_Response_Json($model2);
        }
        throw new Pluf_HTTP_Error500('Unexpected error while removing role: ' . $model2->code_name);
    }
public function delete($request, $match)
    {
        $model = Pluf_Shortcuts_GetObjectOr404('User_Role', $match['id']);
        $model2 = new User_Role($match['id']);
        if ($model->delete()) {
            return new Pluf_HTTP_Response_Json($model2);
        }
        throw new Pluf_HTTP_Error500('Unexpected error while removing role: ' . $model2->code_name);
    }
public function delete ( $ request , $ match ) { $ model = Pluf_Shortcuts_GetObjectOr404 ( 'User_Role' , $ match [ 'id' ] ) ; $ model2 = new User_Role ( $ match [ 'id' ] ) ; if ( $ model -> delete ( ) ) { return new Pluf_HTTP_Response_Json ( $ model2 ) ; } throw new Pluf_HTTP_Error500 ( 'Unexpected error while removing role: ' . $ model2 -> code_name ) ; }
Deletes a role.

@param unknown_type $request
@param unknown_type $match
Deletes a role .