From 03cf872faa491ca3f1777efc77aba310756be7cb Mon Sep 17 00:00:00 2001 From: Ngoc Khuat <qn.khuat@gmail.com> Date: Mon, 16 Jan 2023 23:50:09 +0700 Subject: [PATCH] clarify that delete a database will also delete any questions/models/segments/metric that use the database in doc (#27707) --- src/metabase/api/dashboard.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/metabase/api/dashboard.clj b/src/metabase/api/dashboard.clj index defb929f79c..2be2c8c337d 100644 --- a/src/metabase/api/dashboard.clj +++ b/src/metabase/api/dashboard.clj @@ -428,7 +428,9 @@ ;; be setting `:archived` to `true` via the `PUT` endpoint instead #_{:clj-kondo/ignore [:deprecated-var]} (api/defendpoint-schema DELETE "/:id" - "Delete a Dashboard." + "Delete a Dashboard. + + This will remove also any questions/models/segments/metrics that use this database." [id] (log/warn (str "DELETE /api/dashboard/:id is deprecated. Instead of deleting a Dashboard, you should change its " "`archived` value via PUT /api/dashboard/:id.")) -- GitLab