Purge objects
fylr cannot currently actually purge objects from database. All objects are stored in historic versions, also deleted objects are kept in the database with a flag deleted. These objects can be linked to files. Those files are not deleted by the file janitor as fylr considers them to be in use.
This article describes a method to purge objects using SQL access to the fylr database. After the purge of objects, the file janitor will acknowledge the deleted file links and eventually remote the files and free disk space.
Make sure to have a backup before using this procedure. This is a very dangerous tool and can easily lead to data loss. The SQL here is provided as is, with no warranty and responsibility.
Use at your own risk!
The simple form of the deleting command looks like this:
In case the above throws a foreign key violation, you need to remove links to existing objects first.
You need to replace the ROLLBACK
with COMMIT
to really put this into effect.
The WHERE
clauses can be changed here, to limit the delete run to certain pools (pool_id
) or object types (table_api_id
).
After you are done make sure to do a re-index using /inspect/system
.
Last updated