diff --git a/docs/products/clickhouse/howto/manage-databases-tables.rst b/docs/products/clickhouse/howto/manage-databases-tables.rst index 660b475c1a..81c197775a 100644 --- a/docs/products/clickhouse/howto/manage-databases-tables.rst +++ b/docs/products/clickhouse/howto/manage-databases-tables.rst @@ -48,3 +48,33 @@ Select a table engine Part of the table definition includes a targeted table engine. The full list of supported table engines in Aiven for ClickHouse can be found :doc:`in this article <../reference/supported-table-engines>`. Aiven for ClickHouse uses ``replicated`` variants of table engines to ensure high availability. Even if you select ``MergeTree`` engine, we will automatically use the replicated variant on our side. With this knowledge, try out an example dataset described :doc:`over here `. + +Remove a table +-------------- + +A table can be removed using either CLI or `Aiven Console `_. + +.. note:: + + You can remove a table of any size if you have the ``DROP`` permission since parameters + ``max_table_size_to_drop`` and ``max_partition_size_to_drop`` are disabled for Aiven + services. Consider :doc:`granting + ` only necessary permissions to your database users. + +Remove a table with CLI +^^^^^^^^^^^^^^^^^^^^^^^ + +Run the following SQL command to remove your table: + +.. code-block:: bash + + DROP TABLE NAME_OF_YOUR_DATABASE.NAME_OF_YOUR_TABLE; + +Remove a table in the console +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +To remove your table in `Aiven Console `_, take the following steps: + +1. Log in to the `Aiven Console `_. +2. Navigate to the table you want to remove: organization > project > service > **Databases and tables**. +3. In the **Databases and tables** view, navigate to the table and select **Actions** menu (**...**) > **Remove** > **Delete table**.