/** * Returns the DELETE response * * @param \PSX\Record\RecordInterface $record * @return array|\PSX\Record\RecordInterface */ protected function doDelete($record) { $this->routesService->delete((int) $this->getUriFragment('route_id')); return array('success' => true, 'message' => 'Routes successful deleted'); }