---
title: "Delete an HTTP policy from a rule"
sidebar_label: "Delete an HTTP policy"
sidebar_position: 5
description: "How to delete an HTTP policy from a rule"
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import {TabItemLabel} from '@selectel/docux/components'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Delete an HTTP policy from a rule

If a target group is specified in the HTTP policy, it will not be deleted when the policy is deleted.

<Tabs queryString="delete-http-policy">
  <TabItem value="panel" default>
    <TabItemLabel>
      Control panel
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/lbaas/load-balancers/), on the top menu, click **Products** and select **Cloud Servers**.
    2. Go to the **Load Balancers** section → the **Load Balancers** tab.
    3. Open the load balancer page.
    4. In the **Rules** block, open a rule card.
    5. In the <MoreVerticalIcon /> HTTP policy menu, select **Delete policy**.
    6. Enter the name of the HTTP policy to confirm the deletion.
    7. Click **Delete**.
  </TabItem>

  <TabItem value="openstack">
    <TabItemLabel>
      OpenStack CLI
    </TabItemLabel>

    1. [Open the OpenStack CLI](/cloud-servers/tools/openstack-cli/).
    2. Delete the HTTP policy:

       ```bash
       openstack loadbalancer l7policy delete <policy>
       ```

       Specify `<policy>` — the HTTP policy ID or name. You can view the list using the `openstack loadbalancer l7policy list`.
  </TabItem>
</Tabs>

<Formbricks />
