Delete - cleanupAgent
Delete - cleanupAgent
Description :
This command cleans up old temporary files on a target server (agent). This includes old files that were created by Deploy Jobs in the Transactions directory (especially rollback files) and in the Staging directory.
Return type : java.lang.Object
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
serverName | String | Name of the target server. |
retentionTime | Integer | Retention time in days. The attribute used for determining whether a file is considered for deletion is the access time. If a file was accessed within the specified retention time, it would not be considered for deletion. The minimum valid value for the retention time is 3 days. Note: Programs such as anti-virus and backups reset the access time when they run. Therefore, if you are seeing the files you expected to be cleaned up are not cleaned up, use Delete-cleanupAgent_1, where you can specify an alternate attribute (m-, -c) to achieve the desired results. |
Example
The following example shows how to to clean up temporary files on a target server named server123.
Script