diff --git a/src/CloudinaryAdapter.php b/src/CloudinaryAdapter.php
index <HASH>..<HASH> 100644
--- a/src/CloudinaryAdapter.php
+++ b/src/CloudinaryAdapter.php
@@ -99,7 +99,7 @@ class CloudinaryAdapter implements AdapterInterface
         try {
             $response = $this->api->delete_resources([$publicId]);
 
-            return $response['deleted'][$path] === 'deleted';
+            return $response['deleted'][$publicId] === 'deleted';
         } catch (Api\Error $e) {
             return false;
         }
diff --git a/tests/CloudinaryAdapterTest.php b/tests/CloudinaryAdapterTest.php
index <HASH>..<HASH> 100644
--- a/tests/CloudinaryAdapterTest.php
+++ b/tests/CloudinaryAdapterTest.php
@@ -183,7 +183,7 @@ class CloudinaryAdapterTest extends MockeryTestCase
         $api->shouldReceive('delete_resources')
             ->with(['file'])
             ->once()->andReturn(['deleted' => ['file' => 'deleted']]);
-        $this->assertTrue($cloudinary->delete('file'));
+        $this->assertTrue($cloudinary->delete('file.jpg'));
     }
 
     /**
fix `delete` method