title: How to delete a file from a directory using ftp disk in laravel
body: <p>I'm trying to delete a file from another server that is connected to my project by ftp.
  This is my code :</p>
  <pre><code>Storage::disk('ftp')-&gt;delete('avatars/'.$user-&gt;avatar); 
  </code></pre>
  <p>But this error occurs :</p>
  <pre><code>ftp_delete(): avatars/user2.jpg: Is a directory
  </code></pre>
  <p>And its my ftp configs in filesystems.php :</p>
  <pre><code>'ftp' =&gt; [
      'driver' =&gt; 'ftp',
      'host' =&gt; env('FTP_HOST'),
      'username' =&gt; env('FTP_USERNAME'),
      'password' =&gt; env('FTP_PASSWORD'),
      'root' =&gt; '/public_html/storage',
      'ssl' =&gt; false,
  ],
  </code></pre>
  <p>What is the problem?</p>