php delete file when uploaded code example Example: delete uploaded file php <?php unlink($_POST['filename']); echo 'Deleted'; ?>