php-how to delete files from directory if files already exist?
<p>I tried deleting file if its already existing .</p>

<p>But i ended up with no result.</p>

<p>Can any one help me with this!!!</p>

<pre><code>$path_user = '/wp-content/plugins/est_collaboration/Files/'.$send_id.'/';
if (!file_exists($path_user)) {
    if (mkdir( $path_user,0777,false )) {
        //
    }
} 

unlink($path_user);

if(move_uploaded_file($file['tmp_name'],$path_user.$path)){
    echo "Your File Successfully Uploaded" . "&lt;br&gt;";
}
</code></pre>