You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update database delete behavior for InfluxDB Cloud Dedicated (#5942)
* update dedicated database delete behavior
* removed db name reuse warning from influxctl database create
* added warnings to wait write to a reused db name
Copy file name to clipboardExpand all lines: content/influxdb3/cloud-dedicated/admin/databases/delete.md
+29-20Lines changed: 29 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -29,17 +29,21 @@ related:
29
29
---
30
30
31
31
Use the [`influxctl` CLI](/influxdb3/cloud-dedicated/reference/cli/influxctl/)
32
-
or the [Management HTTP API](/influxdb3/cloud-dedicated/api/management/) to create a database in your {{< product-name omit=" Clustered" >}} cluster.
32
+
or the [Management HTTP API](/influxdb3/cloud-dedicated/api/management/)
33
+
to delete a database from your {{< product-name omit=" Clustered" >}} cluster.
33
34
34
35
> [!Warning]
35
36
>
36
37
> #### Deleting a database cannot be undone
37
38
>
38
39
> Once a database is deleted, data stored in that database cannot be recovered.
39
-
>
40
-
> #### Cannot reuse database names
41
-
>
42
-
> After a database is deleted, you cannot reuse the same name for a new database.
40
+
>
41
+
> #### Wait before writing to a new database with the same name
42
+
>
43
+
> After deleting a database from your {{% product-name omit=" Clustered" %}}
44
+
> cluster, you can reuse the name to create a new database, but **wait two to
45
+
> three minutes** after deleting the previous database before writing to the new
46
+
> database to allow write caches to clear.
43
47
44
48
{{< tabs-wrapper >}}
45
49
{{% tabs %}}
@@ -50,13 +54,15 @@ or the [Management HTTP API](/influxdb3/cloud-dedicated/api/management/) to crea
50
54
51
55
<!------------------------------- BEGIN INFLUXCTL ----------------------------->
52
56
53
-
1. If you haven't already, [download and install the `influxctl` CLI](/influxdb3/cloud-dedicated/reference/cli/influxctl/#download-and-install-influxctl), and then [configure an `influxctl` connection profile](/influxdb3/cloud-dedicated/reference/cli/influxctl/#configure-connection-profiles) for your cluster.
57
+
1. If you haven't already,
58
+
[download and install the `influxctl` CLI](/influxdb3/cloud-dedicated/reference/cli/influxctl/#download-and-install-influxctl), and then [configure an `influxctl` connection profile](/influxdb3/cloud-dedicated/reference/cli/influxctl/#configure-connection-profiles)
59
+
for your cluster.
54
60
55
-
2. In your terminal, run the `influxctl database delete` command and provide the following:
61
+
2.In your terminal, run the `influxctl database delete` command and provide the following:
-`ACCOUNT_ID`: The ID of the [account](/influxdb3/cloud-dedicated/get-started/setup/#request-an-influxdb-cloud-dedicated-cluster) that the cluster belongs to _(see how to [list cluster details](/influxdb3/cloud-dedicated/admin/clusters/list/#detailed-output-in-json))_.
84
-
-`CLUSTER_ID`: The ID of the [cluster](/influxdb3/cloud-dedicated/get-started/setup/#request-an-influxdb-cloud-dedicated-cluster) that you want to manage _(see how to [list cluster details](/influxdb3/cloud-dedicated/admin/clusters/list/#detailed-output-in-json))_.
85
-
-`DATABASE_NAME`: The name of the [database](/influxdb3/cloud-dedicated/admin/databases/) that you want to delete _(see how to [list databases](/influxdb3/cloud-dedicated/admin/databases/list/))_.
89
+
-`ACCOUNT_ID`: The ID of the [account](/influxdb3/cloud-dedicated/get-started/setup/#request-an-influxdb-cloud-dedicated-cluster)
90
+
that the cluster belongs to _(see how to [list cluster details](/influxdb3/cloud-dedicated/admin/clusters/list/#detailed-output-in-json))_.
91
+
-`CLUSTER_ID`: The ID of the [cluster](/influxdb3/cloud-dedicated/get-started/setup/#request-an-influxdb-cloud-dedicated-cluster)
92
+
that you want to manage _(see how to [list cluster details](/influxdb3/cloud-dedicated/admin/clusters/list/#detailed-output-in-json))_.
93
+
-`DATABASE_NAME`: The name of the [database](/influxdb3/cloud-dedicated/admin/databases/)
94
+
that you want to delete _(see how to [list databases](/influxdb3/cloud-dedicated/admin/databases/list/))_.
86
95
87
-
Provide the following request headers:
96
+
Provide the following request headers:
88
97
89
-
-`Accept: application/json` to ensure the response body is JSON content
90
-
-`Authorization: Bearer` and a [Management API token](/influxdb3/cloud-dedicated/admin/tokens/management/) for your cluster _(see how to [create a management token](/influxdb3/cloud-dedicated/admin/tokens/management/) for Management API requests)_.
98
+
-`Accept: application/json` to ensure the response body is JSON content
99
+
-`Authorization: Bearer` and a [Management API token](/influxdb3/cloud-dedicated/admin/tokens/management/) for your cluster _(see how to [create a management token](/influxdb3/cloud-dedicated/admin/tokens/management/) for Management API requests)_.
91
100
92
-
Specify the `DELETE` request method.
101
+
Specify the `DELETE` request method.
93
102
94
103
The following example shows how to use the Management API to delete a database:
0 commit comments