Using the PingIntelligence automated policy tool, you can undeploy the shared flow either by Flow Hook or the Flow Call Out policy.

Undeploy PingIntelligence policy for Flow Hook

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 CA signed certificate-Run the following command to undeploy the PingIntelligence policy with CA-signed certificate.
/opt/pingidentity/pi/apigee/bin/undeploy.sh -fh -ca

Undeploy PingIntelligence policy for Flow Call Out

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 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