How to recover the Deleted Analysis

Source : Jess Wang [AWS] - Post link

QuickSight Team

An Analysis when deleted would be marked for deletion and be available to list via API/CLI (until the retention period. Default retention period is 30 days, unless an explicit value is provided via API/CLI).
For example, I deleted an analysis, but when listing all analyses in my account, I can still see the deleted analysis with status as ‘DELETED’. So I can use this API to find the analysis ID.

        "Status": "CREATION_SUCCESSFUL",
        "CreatedTime": "2021-10-19T19:01:24.843000-04:00",
        "LastUpdatedTime": "2021-10-19T19:13:15.970000-04:00"
    },
    {
        "Arn": "arn:aws:quicksight:us-east-1:123456789012:analysis/pole78d1-jjtt-4efe-yyoo-93ccb9127c39",
        "AnalysisId": " pole78d1-jjtt-4efe-yyoo-93ccb9127c39",
        "Name": "analysis - test",
        "Status": "DELETED",
        "CreatedTime": "2020-10-08T11:45:12.259000-04:00",
        "LastUpdatedTime": "2022-02-04T03:31:46.643000-05:00"
    },

I could successfully restore this analysis using the restore API, and the status if the analysis changed to ‘UPDATE_SUCCESSFULL’.

Please list the analyses in your AWS Account and check if the deleted analysis name, ID shows up. You can then use the analysis ID to restore the analysis.

list analysis - ListAnalyses - Amazon QuickSight
restore analysis - RestoreAnalysis - Amazon QuickSight

Did this solution work for you? I am marking this reply as, “Solution,” but let us know if this is not resolved. Thanks for posting your questions on the QuickSight Community!