title: PHP + FTP delete files in folder
body: <p>I just wrote a PHP Script which should connect to  FTP and delete all files in a special folder.</p>
  
  <p>It looks like this, but I have no clue what command I need to delete all files in the folder logs.</p>
  
  <p>Any idea?</p>
  
  <pre><code>&lt;?php
  
  // set up the settings
  $ftp_server = 'something.net';
  $ftpuser = 'username';
  $ftppass = 'pass';
  
  // set up basic connection
  $conn_id = ftp_connect($ftp_server);
  
  // login with username and password
  $login_result = ftp_login($conn_id, $ftpuser, $ftppass);
  
  // delete all files in the folder logs
  ????????
  
  // close the connection
  ftp_close($conn_id);
  
  ?&gt;
  </code></pre>