#!/bin/bash

cd /usr/lib/vco
find . -name "*apicplugin*" -exec rm -rf {} \;
find . -name "*aci-vro-plugin*" -exec rm -rf {} \;
cd /var/lib/vco
find . -name "*apicplugin*" -exec rm -rf {} \;
find . -name "*aci-vro-plugin*" -exec rm -rf {} \;
# go to delete the XML plugin version entry
cd /var/lib/vco/app-server/conf/plugins/
sed -i.bak '/<entry key="APIC">.*<\/entry>/d' _VSOPluginInstallationVersion.xml
\rm -f /var/lib/vco/app-server/conf/plugins/apic.xml
service vco-configurator restart;sleep 60;service vco-server restart
sleep 45
