• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. Automatic Deployment User Guide
  4. Deleting the SAP HANA Instance
  5. Canceling or Deleting SAP HANA System Deployment (Using the CLI)

Canceling or Deleting SAP HANA System Deployment (Using the CLI)

Scenarios

To redeploy the SAP HANA system or delete resources, use APIs provided by Heat to delete resources.

NOTE:

Do not delete the resources provisioned by Heat on the public cloud management platform because the record of the stack from the Heat remains.

Procedure

  1. On the command-line interface (CLI) of Heat client, run the following command:

    usage: heat --insecure stack-delete [-y] <NAME or ID> [<NAME or ID> ...]

    The parameters are as follows:

    • [-y]: (Optional) The value can be -y or --yes. If this parameter is configured in the command, the deletion takes effect directly without the prompt of the confirmation dialogue box.
    • <NAMEorID>: Name or ID of the stack to be deleted

    For example, run the following command to delete the stack of the anti-affinity group in the SAP HANA system:

    heat --insecure stack-delete zzx-hana-servergroup

  2. Run the following command to query the deletion result:

    heat --insecure stack-show <NAME or ID>

    <NAMEorID>: Name or ID of the stack to be deleted

    The stack is deleted if Stack not found is displayed.

    NOTE:
    • To delete a HANA ECS, you need to log in to the public cloud management console or the HANA ECS to stop the HANA ECS, and then delete its stack.
    • To create an SAP HANA cluster after deleting the original one, you need to create an NFS server.
    • The resources created by stack have dependency relationships. The stack can be deleted by performing reverse operations of that when it is deployed. For details, see the following procedure based on different deployment scenarios.

      Single-node scenario

      a. Run the command heat stack-delete <saphana-studio-eip> to unbind the EIP from the ECS.

      b. Run the command heat stack-delete <saphanan-hana-node> to delete the ECS.

      c. Run the command heat stack-delete <saphana-security-group> to delete the security group used by the ECS.

      d. Run the command heat stack-delete <saphana-subnet> to delete the subnet used by the ECS.

      e. Run the command heat stack-delete <saphana-network> to delete the network used by the ECS.

      f. Run the command heat stack-delete <saphana-keypair> to delete the key pair used by the ECS.

      g. Run the command heat stack-delete <saphana-vpc> to delete the VPC.

      Cluster Scenario

      a. Run the command heat stack-delete <saphana-studio-eip> to unbind the EIP from the ECS.

      b. Run the command heat stack-delete <saphanan-hana-cluster> to delete the ECS cluster.

      c. Run the command heat stack-delete <saphanan-nfs-server> to delete the NFS server ECS.

      d. Run the command heat stack-delete <saphanan-hana-studio> to delete the HANA Studio ECS.

      e. Run the command heat stack-delete <saphanan-nat-server> to delete the NAT server ECS.

      f. Run the command heat stack-delete <saphanan-server-group> to delete the anti-affinity group.

      g. Run the command heat stack-delete <saphanan-security-group> to delete the security group.

      h. Run the command heat stack-delete <saphana-subnet> to delete the subnet used by the ECS.

      i. Run the command heat stack-delete <saphana-network> to delete the network used by the ECS.

      j. j. Run the command heat stack-delete <saphana-keypair> to delete the key pair used by the ECS.

      k. Run the command heat stack-delete <saphana-vpc> to delete the VPC.