# Deleting files from server with php and flash

**URL:** <https://forum.kirupa.com/t/deleting-files-from-server-with-php-and-flash/144575>\
**Category:** Uncategorized\
**Created:** [April 15, 2005, 7:42am UTC](https://forum.kirupa.com/t/deleting-files-from-server-with-php-and-flash/144575 "2005-04-15T07:42:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvsgroup](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@bvsgroup](https://forum.kirupa.com/u/bvsgroup)\
**Post date:** [April 15, 2005, 7:42am UTC](https://forum.kirupa.com/t/deleting-files-from-server-with-php-and-flash/144575/1 "2005-04-15T07:42:12Z")

</div>

I have a made a text fiel in flash where i type in the path to a pic on the server which should be erased. then i crated a save button calling the above php script.  
Both really simple. I have set the permissions for the folders on the server but it doesn erase the file.

Here is the flash:

erase.onRelease = function() {  
\_level1.loadVariables(“erase\_files.php”, “POST”);};

Here is the php: \<?php  
@unlink($erase\_image);  
?\>

The variable being passe dfrom flash is $erase\_image.  
Anyone know how to do this?
