How to delete quicksight author user and associated dashboard using aws cli

How to delete quicksight author user and associated dashboard using aws cli

Hi @yogendrasgautam - You can use delete user api to delete the users. Once the user is deleted, that should be enough, no need to remove from dashboard. Or else you need use update permission. See the delete user link below.

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/quicksight/client/delete_user.html

Regards - Sanjeeb

What if before deleting that user, the dashboard is shared with other user, they will be able to access that dashboard.

Hi @yogendrasgautam - Good point. Can you please do a POC before deleting all users. If the dashboard is shared to a reader, the problem may occurred. Better to perform a POC.

Tagging @Max for the expert feedback.

Regards - Sanjeeb

1 Like

If you delete an Author using cli, all associated assets (analysis , dashboards, datasources , datasets ) will be deleted as well. So any dashboards shared will not be available for viewing.

If you delete an Author through the UI, you get an option to transfer the assets.

Kind regards,
Koushik

2 Likes

In my opinion, It’s not correct. Those dashboards are available if shared with other users before deletion

Did a POC, and dashboards are available to other users if shared before deletion.

I found a workaround for this case as follows,

  1. get dashboards and analysis whose owner is user using search-dashboard, search-analysis commands

  2. delete dashboard and analysis

  3. delete user

1 Like

Thanks @yogendrasgautam for providing the details. You can mark your POC as solution so that it can help other community members.

Have a great weekend.

Regards - Sanjeeb

1 Like