/** * Delete an item * * @param $id */ public function destroy($id) { // Delete the item $this->itemsRepo->destroy($id); // Clear the cache $this->cacheHandler->del(CacheHandlerInterface::MAINPAGE); // Delete from Search Index $this->searchHandler->remove($id); }