It also adds a resource:tidy command, scheduled to run daily, that will soft delete any resources that have expired and move them to the trash.
After reviewing the expired resources report (via Slack or manually), the resource:tidy command can be used with the --prune option to permanently resources moved to the trash.
Use the --preview option with the resource:tidy command to see the expired resource report before trashing or permanently deleting any items.
The expired resources report has been updated to specify if an expired resource has been soft deleted or not:
Things to consider:
The --prune option will remove all expired resources whether they have been moved to the trash or not. Should this only permanently remove trashed items?
Summary
Overview
This PR adds
SoftDeletes
to theResource
model.It also adds a
resource:tidy
command, scheduled to run daily, that will soft delete any resources that have expired and move them to the trash.After reviewing the expired resources report (via Slack or manually), the
resource:tidy
command can be used with the--prune
option to permanently resources moved to the trash.Use the
--preview
option with theresource:tidy
command to see the expired resource report before trashing or permanently deleting any items.The expired resources report has been updated to specify if an expired resource has been soft deleted or not:
Things to consider:
--prune
option will remove all expired resources whether they have been moved to the trash or not. Should this only permanently remove trashed items?