Create a cleanup rule
Define a rule for deleting records from a primary table on a recurring basis.
Vorbereitungen
Role required: admin
Warum und wann dieser Vorgang ausgeführt wird
Create a cleanup rule to delete records on a recurring basis. To delete records as a one-time operation, see Create a one-time delete rule.
Prozedur
-
Access the create rule wizard in the Data Management Console in one of the following ways.
Option Steps Overview tab - Navigate to .
- On the Overview tab, select the table with records that you want to clean up.
- Select Create rule.
Rules tab - Navigate to .
- On the Tables tab, select the table with records that you want to clean up.
- On the table details page, select the Rules tab.
- Select Create rule.
-
Define the cleanup rule.
Define cleanup rule conditions
Define one or more conditions that identify the records to be deleted.
Vorbereitungen
Role required: admin
Warum und wann dieser Vorgang ausgeführt wird
Use the condition builder to specify filter conditions that define the records to be deleted. For example, you might specify that only records where 'active = false AND state =closed' are deleted.
Prozedur
- On the Define conditions page, select the Date/Time field that you want to use for monitoring duration in the Date field.
- Specify the amount of time that the system must wait before deleting records by entering a duration (in years, days, and hours).
-
Limit the number of records by adding one or more conditions that records must meet.
- Select Save and continue.
Select associated records to delete
Specify which associated records to delete when the cleanup rule runs.
Vorbereitungen
Role required: admin
Prozedur
View a summary of your cleanup rule and activate it
View a summary of your cleanup rule and decide whether to activate it.
Vorbereitungen
You must activate the cleanup rule and its corresponding data management policy for the cleanup rule to run.
Role required: admin
Prozedur
- On the Rule summary page, review the cleanup rule conditions and settings.
- Wahlweise: Activate the rule by selecting Activate the rule upon creation.
Ergebnisse
The table cleanup rule runs automatically and deletes records when they meet the specified record age and any conditions that you set for them.