/**
  * @dataProvider adapterProvider
  *
  * @param StorageAdapterInterface $storageAdapter
  * @param string $hash
  * @param array $data
  * @param string $context
  */
 public function testDeleteNotExists(StorageAdapterInterface $storageAdapter, $hash, $data, $context)
 {
     $this->assertFalse($storageAdapter->delete($hash, $context));
     $this->assertFalse($storageAdapter->contains($hash, $context));
 }
 public function delete($hash, $className)
 {
     $metadata = $this->metadataManager->loadByClassname($className);
     $this->searchAdapter->deindex($hash, $metadata);
     $this->storageAdapter->delete($hash, $metadata->getContext());
 }