send to php (using LoadVars - AS2) -
PHP Code:
myLoadVars = new LoadVars();
myLoadVars.delete_path "your.jpg";
myLoadVars.sendAndLoad("your.php"myLoadVars"POST");
myLoadVars.onLoad = function(){
trace("File removed = "+this.removed);
}; 
in your.php (resides in same folder as images) -
PHP Code:
<?php
$delFile
=$_POST[delete_path];
unlink($delFile);
print 
"&removed=".$delFile;
?>