F5 Programmability Training > Automation Mini Classes > Mini Class 2 - Getting Started with F5 Terraform > Module – Remove Configuration from BIG-IP Source | Edit on

Remove Virtual Server Configuration

Please follow the instructions provided by the instructor to start your lab and access your jump host.

  1. Issue terraform destroy command as shown below:

    terraform destroy -target=bigip_ltm_virtual_server.http
    

You should see the following output:

bigip_ltm_pool.pool: Refreshing state... (ID: /Common/terraform-pool)
bigip_ltm_virtual_server.http: Refreshing state... (ID: /Common/terraform_vs_http)

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
- destroy

Terraform will perform the following actions:

- bigip_ltm_virtual_server.http


Plan: 0 to add, 0 to change, 1 to destroy.

Do you really want to destroy?
Terraform will destroy all your managed infrastructure, as shown above.
There is no undo. Only 'yes' will be accepted to confirm.

Enter a value:

Continue terraform destroy by typing yes followed by the enter key…

You should see the following output:

bigip_ltm_virtual_server.http: Destroying... (ID: /Common/terraform_vs_http)
bigip_ltm_virtual_server.http: Destruction complete after 0s

Destroy complete! Resources: 1 destroyed.

Note

All work for this lab will be performed exclusively from the Windows jumphost. No installation or interaction with your local system is required.