Purging soft-deleted records
Users who delete records from the Information Store through Analyst's Notebook Premium have no way to recover them afterward, but by default they are not completely removed. As the database administrator, you can decide to leave these soft-deleted records in the database, or to purge them manually or automatically.
Before you begin
Purging soft-deleted records from the Information Store requires the same authorization as deleting records by rule. You must connect to the database as a user with the Authorization to delete by rule. The following instructions assume that you are connected to the database as a user with that role.
- If you are using IBM Db2, the Db2 administrative task scheduler must be enabled.
- If you are using Microsoft SQL Server, the SQL Agent service must be started.
- If you are using PostgreSQL, you must download a third-party tool such as pg_cron.
About this task
When users delete records from the Information Store through Analyst's Notebook, the data remains in the Information Store (but is inaccessible to users) unless you do something to change that. The following procedures describe how to purge soft-deleted records manually, how to automate that process, and how to understand the effect of a purge operation.
Procedure
To perform a one-off, manual purge of all soft-deleted records from the Information Store:
With a Db2 or SQL Server database, you can set up the Information Store so that soft-deleted records are purged automatically, on a schedule:
With a PostgreSQL database, where there is no built-in scheduling agent, you need to set up the soft-deletion process for yourself:
Regardless of whether a purge was started manually or automatically, the effect is always the same: a set of jobs is created to remove soft-deleted records from the Information Store. To inspect the status and outcome of those jobs, you can use a view that the Information Store provides: