---
title: Undeploying the PingIntelligence policy
description: Using the PingIntelligence automated policy tool, you can undeploy the shared flow either by flow hook or the flow callout policy.
component: pingintelligence
version: 5.2
page_id: pingintelligence:pingintelligence_integrations:pingintelligence_apigee_undeploy_policy
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/pingintelligence_integrations/pingintelligence_apigee_undeploy_policy.html
revdate: April 3, 2024
section_ids:
  undeploying-the-pingintelligence-policy-for-flow-hook: Undeploying the PingIntelligence policy for Flow Hook
  steps: Steps
  choose-from: Choose from:
  undeploying-the-pingintelligence-policy-for-flow-callout: Undeploying the PingIntelligence policy for Flow Callout
  steps-2: Steps
  choose-from-2: Choose from:
---

# Undeploying the PingIntelligence policy

Using the PingIntelligence automated policy tool, you can undeploy the shared flow either by flow hook or the flow callout policy.

To undeploy the PingIntelligence policy:

* Flow hook

* Flow callout

## Undeploying the PingIntelligence policy for Flow Hook

### Steps

* Undeploy the PingIntelligence policy:

  #### Choose from:

  * Undeploy with self-signed certificate: Run the following command to undeploy the PingIntelligence policy with self-signed certificate.

    ```
    /opt/pingidentity/pi/apigee/bin/undeploy.sh -fh
    ```

  * Undeploy with certificate authority (CA)-signed certificate: Run the following command to undeploy the PingIntelligence policy with a CA-signed certificate.

    ```
    /opt/pingidentity/pi/apigee/bin/undeploy.sh -fh -ca
    ```

## Undeploying the PingIntelligence policy for Flow Callout

### Steps

* Undeploy the PingIntelligence policy:

  #### Choose from:

  * Undeploy with self-signed certificate: Run the following command to undeploy the PingIntelligence policy with self-signed certificate.

    ```
    /opt/pingidentity/pi/apigee/bin/undeploy.sh -fc
    ```

  * Undeploy with certificate authority (CA)-signed certificate: Run the following command to undeploy the PingIntelligence policy with CA-signed certificate.

    ```
    /opt/pingidentity/pi/apigee/bin/undeploy.sh -fc -ca
    ```
