Purge Trash Script

The purge_trash.php script allows you to purge the trash using the command line as opposed to the Purge Trash function within Squiz Matrix. It can be added to the system crontab and automatically run at regular intervals to purge the system trash. 

This script is located in the /scripts directory of your Squiz Matrix system and takes the following parameter:

  • the ID of a trashed asset. If an asset ID is provided, only this asset and its child assets will be purged instead of the entire trash. If it is omitted, the entire trash will be purged.

PreviousNext