Support > Administrator's guide (R7) > Delete job of unreferenced file
ja | en

You can periodically delete files that are not referenced from any data.

The "file type" item provided by Wagby saves the actual file under the upload_dir folder. However, even if you deleted the data that refers to that file, Wagby will not immediately delete the entity of the file.

You can use this job to periodically delete unreferenced files.

exportAdd the parameter unlinkfile to the job.

Parameter name Description Description example
unlinkfile Specify one of delete, move: (destination folder), show. move:/home/wagby/removefiles

I will explain details of each designation.

delete

Delete unreferenced files. Information on which files were deleted is recorded at the log level INFO.

move

Moves unreferenced files to the specified folder. Separate after move with ":" (colon) and specify the destination folder. The destination folder specified here is prepared in advance and must be writable.

A folder for each model is automatically prepared for the specified destination folder.

Information on which file was moved is recorded at the log level INFO.

show

Information on which file is to be deleted is recorded with the log level INFO.

  • The folder to be deleted conforms to the contents specified in wagbyapp \ webapps \ wagby \ WEB - INF \ classes \ savedir.properties.
  • For other parameter specification methods, please refer to the export job.