Search the VMware Knowledge Base (KB)
View by Article ID

How to delete empty deployments in vRA 7.x (2148996)

  • 1 Ratings

Symptoms

  • Several empty deployment items fails to destroy due to various software component errors.
  • There are no software component or virtual machine items associated with those deployments, and the software components that are throwing the errors do exist.

Purpose

 This article provides steps about how to delete empty deployment shells.

Cause

This issue occurs when empty deployment shells remain without any virtual machines associated to them.

Resolution

To resolve the issue:
 
Notes:
  • Take a backup or snapshot of vRealize Automation node.
  • The deployment must not have any components, otherwise they will be left orphaned.
 
  1. Download the 2148996_delete-deployment.zip file attached to this Knowledge base article.
  2. Extract the file to get delete-deployment.sh script file.
  3. Copy the script to vRealize Automation appliance and make it executable.

    Note: The script assumes that PGPASSWORD is set in the environment and it asks for the password. To get the postgres password, see  How to obtain the postgres vcac user password in VMware vRealize Automation 7.x (2144071)
  4. Run the script by running the command:

    ./delete-deployment.sh "name of deployment shell"


    For example:

    ./delete-deployment.sh "Markham Windows 7 Pro, 64bit80273"

Attachments

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 1 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 1 Ratings
Actions
KB: