We have some code that deletes dashboards or datasets. It loops through the folders/memberships…Can I just delete dashboard/dataset without deleting the membership?
I tried deleting the dashboard directly from the awscli and it does not seem to error. But I want to confirm that this is correct.
Hello @alltej hope this message finds you well
And the answer to your question is: Yes, you can delete a dashboard or dataset directly!!
When you delete a dashboard or dataset, QS automatically handles the removal of its membership from any folders it belongs to.
For example, using the AWS CLI:
Deleting a Dashboard
aws quicksight delete-dashboard --aws-account-id <account-id> --dashboard-id <dashboard-id>
Deleting a Dataset
aws quicksight delete-data-set --aws-account-id <account-id> --data-set-id <data-set-id>
These commands will delete the specified dashboard or dataset, and QuickSight will take care of cleaning up the folder memberships. You do not need to manually delete the memberships beforehand.
Please, tell me if its works to you
Correct, when you are deleting a dashboard, the details associated with the dashboard is also removed. Thanks to @lary_andr
Regards - Sanjeeb
Hi @alltej
It’s been a while since we last heard from you. If you have any further questions, please let us know how we can assist you.
If we don’t hear back within the next 3 business days, we’ll proceed with close/archive this topic.
Thank you!