Delete all records from a table
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- Table Administration
You may decide to delete all the records on a table without deleting the table itself. For example, the administrator may want to delete all incidents on a test instance without deleting the incident table itself.
Before you begin
Role required: admin
About this task
When you prepare to delete many records from a table, consider the following
guidelines to minimize impact on performance.
- Limit the number of records to be deleted in a single delete action to prevent the table from being locked. Use the setLimit() method described at setLimit.
- Minimize triggering an excessive number of business rules as a result of this deletion. Use the setWorkflow(Boolean e) method described at setWorkflow.
Note: Deleting all records for a table also deletes records from tables that
extend the table.
There are several methods for deleting table records. Depending on the number of records to be deleted, choose the method that would be most efficient in your environment. Use these methods with caution. Before performing this procedure, be sure that you do not need any of the records.
Procedure
-
From the Tables and Columns module, complete the
following steps.
-
From a list view, complete the following steps.
- In List v2, navigate to the list view that displays the table records, click the context menu, and then navigate to Show.
- In List v3, click <Number> rows per page in the footer.
- Set the number of rows per page to display the max number.
- Select all the rows on the page.
- Click Actions on selected rows, and then click Delete.
- Continue deleting all rows on a page until all records are deleted.
Result