Create a one-time delete rule

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 4 Minuten Lesedauer
  • 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

    1. Access the create rule wizard in the Data Management Console in one of the following ways.
      OptionSteps
      Overview tab
      1. Navigate to All > System Data Management > Data Management Console > .
      2. On the Overview tab, select the table with records that you want to delete.
      3. Select Create rule.
      Rules tab
      1. Navigate to All > System Data Management > Data Management Console > .
      2. On the Tables tab, select the table with records that you want to delete.
      3. On the table details page, select the Rules tab.
      4. Select Create rule.
    2. Define the one-time delete rule.
      1. On the Define your rule page, select One-time delete as the rule type.
      2. Enter a name and description for the rule.
        The name is used as the display value for references to this rule.
      3. Select Save and continue.

    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.

    Wichtig:
    Deleting records can cause unexpected cascade deletion. Preview the number of records that will be affected before activating the rule and change the conditions as needed.

    Prozedur

    1. On the Define conditions page, limit the number of records by adding one or more conditions that records must meet.
      1. Select a field, operator, and field value.
        For example, [Category] [is] [Software].
      2. Wahlweise: Use the OR and AND operators to add conditions.
      3. Wahlweise: Select Add condition set Criteria to add another set of conditions.
      Hinweis:
      Limiting the number of records that are added to the one-time delete job can help prevent the table from being locked when the job is executed.
    2. Wahlweise: View the records that match the conditions by selecting Preview affected records.
      The list of records appears in a new browser tab.
    3. On the Define conditions page, select Save and continue.

    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

    1. On the Delete associated records page, view the count of records from the source table that match the conditions in the one-time delete rule by selecting Preview cascade.
      The Preview cascade delete records dialog displays the estimate. Counts for records in other tables that reference those source records are listed as well, although those counts are only close estimates.
    2. Review the count of affected records by table to ensure that the records are safe to delete.
    3. Note that a rollback context is created by default.
      Wichtig:
      If you need to restore records deleted by accident, you have up to fourteen days to execute the rollback job.
    4. Wahlweise: Run predefined business rules after records are deleted by selecting Run business rules and engines.
    5. Select Save and continue.

    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

    1. On the Set up schedule page, schedule the one-time delete rule to run now or at a later date.
      OptionDescription
      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.
    2. 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

    1. On the Rule summary page, review the one-time delete rule conditions and settings.
    2. 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.