Updated on 2023-10-23 GMT+08:00

Step 8: Cleaning Up Resources

After completing operations in this tutorial, if you no longer need to use the resources created during the operations, you can delete them to avoid resource waste or quota occupation.

Deleting the Foreign Table and Target Table

  1. Run the following command to delete the target table product_info:

    1
    openGauss=# DROP TABLE product_info;
    

    If the following information is displayed, the target table has been deleted:

    1
    DROP TABLE
    

  2. Run the following command to delete the foreign table product_info_ext:

    1
    openGauss=# DROP FOREIGN TABLE product_info_ext;
    

    If the following information is displayed, the foreign table has been deleted:

    1
    DROP FOREIGN TABLE