Set Delete Options for Completed Attempts
$delete_option keywords
This command is used when you wish to delete temporary document files or delete the FS file automatically after a fax has been transmitted. It typically appears in the FS template file for a fax broadcast using the CopiaFacts Graphical Customization feature, when the temporary files might otherwise consume a large amount of disk space.
The deletion of attachment files excludes any files in or below the FAXFACTS\SCRIPTS folder.
The parameter on this command is used as follows:
| keywords | One or more of the following keywords, separated by '|' if more than one is used: |
| temp | Causes any document file mentioned on a $fax_filename command to be deleted after a successful transmission if it contains the string '\temp\' in the pathname. If the file extension of a deleted file is .1 then any following .2, .3 etc files are also deleted. |
| tmpf | Causes any document file mentioned on a $fax_filename command to be deleted after an unsuccessful transmission (after any scheduled retries) if it contains the string '\temp\' in the pathname. If the file extension of a deleted file is .1 then any following .2, .3 etc files are also deleted. |
| atemp | Causes any temporary e-mail attachment file (created in response to a content-type not matching the attachment file type) to be deleted after a successful transmission (after any scheduled retries). |
| atmpf | Causes any temporary e-mail attachment file (created in response to a content-type not matching the attachment file type) to be deleted after an unsuccessful transmission. |
| attach | Causes attachment files (named on an $email_attach command) other than those with a content-type containing EMBEDDED: to be deleted after a successful transmission. |
| attachf | Causes all attachment files (named on an $email_attach command) other than those with a content-type containing EMBEDDED: to be deleted after an unsuccessful transmission (after any scheduled retries). Note that this will prevent successful manual resubmission of the e-mail. |
| embed | Causes any e-mail attachment file which has a content-type containing EMBEDDED: to be deleted after a successful transmission (after any scheduled retries). |
| embedf | Causes any e-mail attachment file which has a content-type containing EMBEDDED: to be deleted after an unsuccessful transmission. Note that this will prevent successful manual resubmission of the e-mail. |
| sent | Causes the FS file to be deleted instead of being placed in the SENT subdirectory. |
| fail | Causes the FS file to be deleted instead of being placed in the FAIL subdirectory. |
| tosend | Causes a pre-process operation under the control of FFEXTERN to move the FS file to SENT instead of placing it in TOSEND for transmission. This option is therefore not valid on an FS file in the TOSEND directories. |
The 'tosend' keyword allows an application to make use of FFEXTERN preprocessing (for example, for document conversion) without actually sending a fax.
The environment variable FORCE_FS_WRITE can be used to suppress the sent and fail keywords to investigate an issue, without the need to change applications which create FS files with these keywords. If you use this variable, make sure that the SENT and FAIL folders are present under CALLBACK.
Default: No files are deleted.
Example:
To delete both successful FS files and temporary Graphical Customization generated files:
$delete_option temp|sent