Sometimes when playing around with a virtual environment (or just a test environment) you want to remove the entire network configuration, and as you might know — you cannot simply remove what you want from Neutron. There are dependencies and you need to remove network elements accordingly. For example, you cannot remove a virtual router before having cleared its gateway interface or other interfaces to subnets.
This script should help you clean everything from Neutron. It only requires the environmental variables to be loaded.
It is designed to be used with TripleO deployments on the undercloud. Though, you can tweak the environment variables checks to allow it work anywhere.
Use with care!