Skip to content

Latest commit

 

History

History
74 lines (39 loc) · 2.15 KB

delete-service-instances-using-the-cloud-foundry-command-line-interface-302f2a3.md

File metadata and controls

74 lines (39 loc) · 2.15 KB

Delete Service Instances Using the Cloud Foundry Command Line Interface

You can use the Cloud Foundry Command Line Interface (cf CLI) to delete service instances.

Procedure

  1. Open a command line and log in.

    cf l -a <API endpoint>
    
  2. (Optional) List all services and bound apps in your org:

    cf services
    
  3. Unbind the service from any application.

    cf unbind-service APP_NAME SERVICE_INSTANCE
    
  4. (Optional) List all service keys for your service instance.

    cf service-keys SERVICE_INSTANCE
    
  5. Delete any service key from the service instance.

    cf delete-service-key SERVICE_INSTANCE SERVICE_KEY
    
  6. Run the following command to delete a service instance:

    cf delete-service SERVICE_INSTANCE
    

    Specify the following parameters:

    • SERVICE_INSTANCE: The name of your service instance.

    • APP_NAME: The name of an application your service instance is connected to.

    • SERVICE_KEY: The name of the service key of your service instance.

Related Information

About Services

Deleting Service Instances