public function removeResource(EntityInterface $resource, bool $flush = true);
/** * {@inheritdoc} */ public function handleDeleteRequest(Request $request, $identifier) { $resource = $this->getResourceById($identifier); $this->manager->removeResource($resource); return new JsonResponse(['success' => true, 'identifier' => $identifier, 'resource_type' => $this->getResourceType()]); }