nav-img
Advanced

Deleting a Table on the DLI Console

You can delete an unused data table from the DLI console: when a data table is no longer needed, such as after a test data table has completed testing; if a data table has errors or anomalies that cannot be fixed; when there is a need to reorganize the data structure, such as by modifying table designs; or if a data table is idle and has no practical use.

This section describes how to delete a data table on the DLI management console.

Precautions

  • Databases or tables that are being used for running jobs cannot be deleted.
  • Only administrators, table owners, and users with table deletion permission can delete tables.
    Note

    Deleted data tables cannot be restored. Exercise caution when performing this operation.

Deleting a Table

You can delete a table on either the Data Management page or the SQL Editor page.

  • On the Data Management page
    1. In the navigation pane on the left of the console, choose Data Management > Databases and Tables.
    2. Locate the database whose tables you want to delete and click its name.
    3. On the displayed page, select the table you want to delete, click More in the Operation column, and select Drop Table.
    4. In the displayed dialog box, click Yes.
  • On the SQL Editor page
    1. In the navigation pane on the left of the console, choose SQL Editor.
    2. In the middle pane, click the Databases tab. Click the name of the database whose tables you want to delete.
    3. Click next to the table to delete and select Delete.
    4. In the Drop Table dialog box that appears, click OK.