title: Delete files uploaded in external Disk(DigitalOcean) in laravel
body: <p>I'm using digital ocean(do) to save files and not storage in my server, by now I can upload files without problem, but I need delete the files uploaded and not only in the DB, I have been trying delet it with:</p>
  
  <pre><code>Storage::delete('url/to/file');
  unset('url/to/file);
  </code></pre>
  
  <p>but this doesn't work.</p>
  
  <p>This is my code</p>
  
  <pre><code>$upload = Upload::find($id);
  $upload-&gt;delete();
  Storage::delete($upload-&gt;getVideo()); //it doesn't give me any mistakes
  //$upload-&gt;getVideo(); retun the url
  $upload-&gt;delete();
  </code></pre>
  
  <p>To upload files I'm using this code:  </p>
  
  <pre><code>$path = Storage::disk('do')-&gt;putFileAs( $order-&gt;user-&gt;hash, $request-&gt;file('file'), bin2hex(random_bytes(24)).'.'.$extencion, 'public');
  </code></pre>