Create a one-time delete rule
Define a rule for deleting records now or at a later date.
Vorbereitungen
Role required: admin
Warum und wann dieser Vorgang ausgeführt wird
Create a one-time delete rule to delete records once. To delete records on a recurring basis, see Create a cleanup 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 delete.
- Select Create rule.
Rules tab - Navigate to .
- On the Tables tab, select the table with records that you want to delete.
- On the table details page, select the Rules tab.
- Select Create rule.
-
Define the one-time delete rule.
Define one-time delete 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.
Prozedur
Select associated records to delete
Specify which associated records to delete when the one-time delete rule runs.
Vorbereitungen
Role required: admin
Warum und wann dieser Vorgang ausgeführt wird
Deleting records in a table also deletes records from tables that extend or reference the source table. Preview the affected records before you execute a delete job and learn about other tables that are impacted.
Up to three levels of cascaded records are deleted when the job is executed. For example, if the preview identifies incidents that match the conditions, it will also delete any problems that reference those incidents, defects that reference those problems, and test records that reference the defects. If sys_attachment and sys_attachment_docs table records are associated with the incidents, those records might not appear in the preview but they are deleted as well.
Prozedur
Schedule or execute a one-time delete rule
Schedule a date and time to execute a one-time delete rule or execute it after you finish creating it.
Vorbereitungen
Role required: admin
Warum und wann dieser Vorgang ausgeführt wird
Consider scheduling the one-time delete rule to run during non-business hours to minimize the potential performance impact on your users. Deleting all records in a table temporarily locks the table, which prevents inserts and updates. If you want to delete all records from a table, use a cleanup rule instead. For more information, see Deleting older or unwanted records in Data Management Console.
Prozedur
-
On the Set up schedule page, schedule the one-time delete rule to run now or at a later date.
Option Description Schedule later Set up a schedule at a later time. Execute upon creation Run the one-time delete rule immediately after you finish creating it. Run at Select a date and time to run the one-time delete rule. Hinweis:Scheduling at a later date and time might affect a different number of records. - Select Save and continue.
View a summary of your one-time delete rule
View a summary of your one-time delete rule and acknowledge the deletion.
Vorbereitungen
You must activate the one-time delete rule and its corresponding data management policy for it to run.
Role required: admin
Prozedur
- On the Rule summary page, review the one-time delete rule conditions and settings.
- Read and verify the deletion by selecting the acknowledgment statement.
Ergebnisse
The one-time delete rule runs based on the chosen schedule and deletes records when they meet the conditions that you set for them.