You can delete a location if the location is not associated with any lifecycle environments or host groups. If there are any lifecycle environments or host groups associated with the location you are about to delete, remove them by navigating to Administer > Locations and clicking the relevant location. Do not delete the default location created during installation because the default location is a placeholder for any unassociated hosts in the {Project} environment. There must be at least one location in the environment at any given time.
-
In the {ProjectWebUI}, navigate to Administer > Locations.
-
Select Delete from the list to the right of the name of the location you want to delete.
-
Click OK to delete the location.
-
Enter the following command to retrieve the ID of the location that you want to delete:
# hammer location list
From the output, note the ID of the location that you want to delete.
-
Enter the following command to delete the location:
# hammer location delete --id Location ID