# Deleting Dashboards/Datasets...Do I need to delete there memberships first?

**URL:** <https://community.amazonquick.com/t/deleting-dashboards-datasets-do-i-need-to-delete-there-memberships-first/46480>\
**Category:** Q&A\
**Tags:** api, developer, quick-sight\
**Created:** [May 21, 2025, 8:28pm UTC](https://community.amazonquick.com/t/deleting-dashboards-datasets-do-i-need-to-delete-there-memberships-first/46480 "2025-05-21T20:28:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alltej](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@alltej](https://community.amazonquick.com/u/alltej)\
**Post date:** [May 21, 2025, 8:28pm UTC](https://community.amazonquick.com/t/deleting-dashboards-datasets-do-i-need-to-delete-there-memberships-first/46480/1 "2025-05-21T20:28:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lary\_andr](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/lary_andr/32/27681_2.png) [@lary\_andr](https://community.amazonquick.com/u/lary_andr)\
**Post date:** [May 21, 2025, 9:06pm UTC](https://community.amazonquick.com/t/deleting-dashboards-datasets-do-i-need-to-delete-there-memberships-first/46480/2 "2025-05-21T21:06:20Z")

</div>

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

```bash
aws quicksight delete-dashboard --aws-account-id <account-id> --dashboard-id <dashboard-id>

```

### Deleting a Dataset

```bash
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 Quick Sight 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

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [May 22, 2025, 3:58am UTC](https://community.amazonquick.com/t/deleting-dashboards-datasets-do-i-need-to-delete-there-memberships-first/46480/3 "2025-05-22T03:58:38Z")

</div>

Correct, when you are deleting a dashboard, the details associated with the dashboard is also removed. Thanks to @lary_andr

Regards - Sanjeeb

---

<div class="post-metadata">

**Author:** ![Xclipse](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xclipse/32/20455_2.png) [@Xclipse](https://community.amazonquick.com/u/Xclipse)\
**Post date:** [June 1, 2025, 5:21am UTC](https://community.amazonquick.com/t/deleting-dashboards-datasets-do-i-need-to-delete-there-memberships-first/46480/4 "2025-06-01T05:21:32Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Xclipse](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xclipse/32/20455_2.png) [@Xclipse](https://community.amazonquick.com/u/Xclipse)\
**Post date:** [June 4, 2025, 5:54pm UTC](https://community.amazonquick.com/t/deleting-dashboards-datasets-do-i-need-to-delete-there-memberships-first/46480/5 "2025-06-04T17:54:40Z")

</div>

Hi @alltej

Since we have not heard back from you, I’ll go ahead and close this topic. However, if you have any additional questions, feel free to create a new topic in the community and link this discussion for relevant information.

Thank you!
