FinOps for Cloud
Sign In
  • Home
  • Open Source
  • FinOps for Cloud
    • Overview
  • Insights
    • Recommendations
      • Savings Optimization Recommendations
      • Security Recommendations
      • Clean-up Scripts Based on Recommendations
      • Archived Recommendations
    • Resources
      • Constraints
    • Pools
      • Configure Assignment Rules
      • Re-apply Ruleset
      • Delete Pools
      • Pool Constraint Policies
    • Cost Explorer
  • Policies
    • Anomaly Detection
      • Create Anomaly Detection Policies
    • Quotas and Budgets
      • Create Quota or Budget Policies
    • Tagging Policies
      • Create Tagging Policies
  • System
    • User Management
    • Data Sources
      • Amazon Web Services
        • AWS Root Account with Data Export Already Configured
        • AWS Root Account With No Data Export Configured
        • AWS Linked
        • Migrate from CUR to Data Exports CUR 2.0
      • Google Cloud Platform
      • Microsoft Azure
    • Events
    • Settings
  • Help and Support
    • Contact Support
    • FAQs
      • Why does the pricing in FinOps not match the SoftwareOne invoice?
    • Release Notes
    • Terms of Use
Powered by GitBook
LogoLogo

Company

  • About SoftwareOne
  • Careers
  • Media Releases

Policies

  • Codes of Conduct
  • Privacy Statement
  • Terms and Conditions

© 2025 SoftwareOne. All rights reserved.

On this page
  • Amazon Web Services (AWS)
  • Microsoft Azure
  • Google Cloud Platform (GCP)

Was this helpful?

Export as PDF
  1. Insights
  2. Recommendations

Clean-up Scripts Based on Recommendations

PreviousSecurity RecommendationsNextArchived Recommendations

Last updated 12 days ago

Was this helpful?

The script deletes all recommended resources (based on the downloadable JSON file) and ignores errors. After completion, a summary lists deleted resources, non-existing or already deleted resources, and resources that couldn't be deleted due to other reasons.

Amazon Web Services (AWS)

  • jq - The package allows executing JSON scripts with bash. See .

  1. Install the requirements on a machine running Linux OS.

  2. Configure the AWS Command Line Interface. (Run the aws configure command. For information, see the ).

  3. Download the script from the corresponding subsection on the Recommendations page.

  4. From the same page, download the JSON file containing a list of all resources recommended for deletion.

  5. Run the script as follows: bash <script_name> <path to json file>.

Microsoft Azure

  • jq - The package allows executing JSON scripts with bash. See .

Azure Azure CLI

  1. Install the requirements on a machine running Linux OS.

  2. Sign in with the Azure CLI.

  3. Download the script from the corresponding subsection of the Recommendations page.

  4. From the same page, download the JSON file containing a list of all resources that are recommended for deletion.

  5. Run the script as follows: bash <script_name> <path to json file>.

Azure Shell

  1. Open .

  2. Download the script and the JSON file from the corresponding subsection of the Recommendations page.

  3. Copy these files using the Upload/Download files button. The files will be placed in /usr/csuser/clouddrive.

  4. Run the script as follows: bash <script_name> <path to json file> using absolute paths or navigate to the necessary folder before executing.

Google Cloud Platform (GCP)

jq - The package allows executing JSON scripts with bash. See .

  1. Install requirements on a machine running Linux OS.

  2. Configure gcloud: run gcloud init. See for more information.

  3. Run script bash <script_name> <path to recommendation json file>.

AWS Command Line Interface (AWS CLI)
Download jq
AWS User Guide
Azure CLI
Download jq
Azure Cloud Shell
Google Cloud CLI
Download jq
Initializing the gcloud CLI