Creating a deletion rule
Use a valid SQL query as a basis for a deletion rule. Store the corresponding deletion rule for use in the deletion process.
Before you begin
Verify the condition that you need for the deletion rule by creating an SQL query that returns the appropriate data. For more information, see Identifying the data.
Procedure
What to do next
To review the rule, browse the data in the
IS_Public.Deletion_Rules
view.
For example, see the following rule details.rule_name | view_name | conditions | automated |
---|---|---|---|
OLD EVENTS | E_Event_DV | source_last_updated < CURRENT_DATE -3 YEARS | N |
By default, the rule is set up so that you can use it to create jobs manually. For more information, see Creating a deletion job. You can also configure the rule so that jobs are created automatically, according to a schedule. For more information, see Automating deletion by rule.
You can update a stored rule by a procedure similar to rule creation, or use a procedure to delete a rule. For more information, see Functions and stored procedures.