Support > Administrator's guide (R7) > File delete job

You can delete a specific file (or folder).

By using the file delete job, you can perform operations such as periodically deleting uploaded files.

Figure 1 Job settings
  1. Log on with an account with administrator privileges.
  2. Open the "Job Management" "Job Schedule Search" screen from the menu.
  3. Click the "Register Screen" button to register a new job schedule.
  4. Select "RemoveFile" from the job name."Delete file" is displayed in the explanation column below that.
  5. Write job parameters.[To be described later]
  6. Specify the schedule.
  7. Check the "valid" flag.
  8. Enter the account and password to run this job.Please read "Preparation: Enable job execution account" for setting job execution account.
  9. Register the job schedule.The job will be executed at the specified time.

You can specify more than one parameter to specify for the job. The parameters that can be specified here are as follows.

Parameter name Required Description Description example
dir Specify the target folder.The starting folder is "wagbyapp \ bin". To specify a log folder
When specifying an export folder
mdate Target files that have passed the specified number of days since the last update.In the format, I write numbers directly. 7 (Files that * 7 days passed)
mtime We will target files that have passed since the last update since the specified time.The format can be HH: mm or HH: mm: ss.When used with mdate, mtime takes precedence. 3:00 (※ 3 hours have passed)
wildcard Specify the target file with the wildcard specification. * .log (It targets files whose ending is "log")
exclude Files matched by regular expressions are excluded.Multiple patterns can be specified by specifying exclude 1, exclude 2, ... with numbers at the end. . * Zip $ (Do not exclude files ending in "zip")
maintenance When executing this job, specify whether to switch to maintenance mode.Default is "true" (maintenance mode is applied). false
maintenanceOption Specify how to respond to the account that was logged on when switching to maintenance mode.[Optional] Logout: Force logout of the account logged on before job execution.
Fail: If there is an account logged on before job execution, cause the job to fail.
(Default): Switch the mode while leaving the logged on account unchanged.
The mdate, mtime, and exclude specifications are applied to the target file or the target folder of the first hierarchy.All files and folders contained in the target folder are subject to compression.
The execution result of the job is described in the log file (system.log).
If more than one parameter with the same name is defined, the last parameter is valid.

You can temporarily disable the job.

  1. Log on with an account with administrator privileges.
  2. Open the "Job" "Job Schedule Search" screen from the menu.
  3. Search the applicable "Job Schedule" and open the maintenance screen.
  4. Uncheck the "Enabled" flag and save it.
    Figure 2 Disable Job

You can send the job execution result by e-mail.

Multiple job execution can not be performed.

If you make a job start every minute, if execution of this job is not completed in 1 minute, a new job will not be executed.

Instead of specifying time, you can also run this job now.Please read "Job Immediate Execution".