Delete File or Directory - (by Felice Di Stefano)
(ASP and PHP support)

This behavior will insert a code block to delete a file or directory using a form or not. Usually you can delete a file inserting the path on a form element triggered by a form button but you may make it happen dynamically when page loads depending on the value of sources.

Setting up

Form Name: Select the form you are using. Don't bother it if you are not using a form.
Path Elem: Define here the form element or source used for the path of the file to delete.
Trigger: Define here the form element (button) or source which will trigger the action.
Failed Msg: Only for PHP. Write a message to show in case the operation fails, reasons may be various like not enough permissions or else. In Asp a system message will be returned.
Not Empty Msg: Write a message to show in case the operation fails because the directory is not empty.
Not Exists Msg: Only for PHP. Write a message to show in case the operation fails because the file does not exists. In Asp a system message will be returned.
Redirect To: Define a redirection after operation if you wish.


by FELIXONE