title: Folder delete error - can't delete folders extracted from zip
body: <p>I'm having an issue deleting a directory in the server after it was extracted. </p>
  
  <p>I've uploaded file.zip to the server, then created a file called "<strong>en</strong>", gave it permission <strong>777</strong> then extracted the content of file.zip to "<strong>en</strong>" and it was ok. 
  The thing is, <strong>I cannot now delete any file under</strong> "<strong>en</strong>" however, renaming seems to work fine. I was able to rename "en" to "delete_me" and was able to rename
  it's sub dir as well. </p>
  
  <p>If I try to delete a single file under "delete_me" for example index.html, I get</p>
  
  <pre><code>Command:    DELE index.html
  Response:   550 index.html: Permission denied
  </code></pre>
  
  <h2>1- FTP delete attempt:</h2>
  
  <p>When I try to delete "delete_me" via FTP - FileZilla, it starts looping inside the dir and showing this message for each file: </p>
  
  <pre><code>Response:   150 Opening BINARY mode data connection for MLSD
  Response:   226 Transfer complete
  Status: Directory listing successful
  Command:    DELE index.html
  Response:   550 index.html: Permission denied
  Command:    CWD /httpdocs/_delete_me
  Response:   250 CWD command successful
  </code></pre>
  
  <p>When I checked the (owner/group), I found it's (48/48) while other dir or files created by me have (10618/2524).</p>
  
  <h2>2- cPanel delete attempt:</h2>
  
  <p>I tried the to access via the hosting control panel File Manager then found the (<strong>User/Group</strong>) for folders inside "delete_me" is (<strong>apache/apache</strong> while for my files (<strong>/psacln</strong>)</p>
  
  <p>When I try to delete the file from the hosting control panel, I get </p>
  
  <pre><code>Error: Unable to remove file /httpdocs/_delete_me// var/www/vhosts/&lt;hostname&gt;/httpdocs/_delete_me/tmp: filemng failed: rm: cannot remove `/var/www/vhosts/&lt;hostname&gt;/httpdocs/_delete_me/tmp/index.html': Permission denied
  filemng: Error occured during /bin/rm command.
  </code></pre>
  
  <h2>3- PHP Delete:</h2>
  
  <p>Last thing I tried to change permission <code>@chmod($dirPath, 0777);</code> and delete <code>rmdir($dirPath);</code>  or  <code>unlink($file);</code> but without a result.  </p>
  
  <p>The only resource found similar to my issue is here (<a href="http://www.sitepoint.com/forums/showthread.php?620228-PHP-unlink-error-can-t-delete-folder-extracted-from-zip" rel="nofollow">Forum Question</a>) but it seems it wasn't answered (<em>answer link provided is no longer available</em>). </p>
  
  <p>**So, how to delete the file? ** </p>