$propertyName, 'type' => $class->getUri(), 'parentClasses' => $this->getParentClasses($class) ]; $this->logInfo('Removing property from index'); try { $this->getServiceLocator() ->get(IndexUpdaterInterface::SERVICE_ID) ->deleteProperty($propertyData); } catch (Throwable $exception) { $message = 'Failed to remove class property from search index'; $this->logError($message); return common_report_Report::createFailure(__($message)); } $message = 'Class property removed successfully.'; $this->logInfo($message); return common_report_Report::createSuccess(__($message)); } }