Using the Delete File action, delete all files from the publishing folder, or choose to delete specific files. This action is usually used in conjunction with other actions. For example, you might want to remove several additional files from the publishing folder before uploading the remaining files to a webserver. Wildcards enable you to delete all files in a specific format, for example, *.gif.
To create a delete action:
- Open the publishing profile and select the Actions tab.
- Click the Delete Files action.
- Use wildcards to identify the type of files you want to delete, or select All output in publishing folder.
- Click OK.
The action appears in the After Publishing list. To move the action to the Before Publish list select the action and click the Move Up arrow.
- Save the changes to the profile.