OpenStack: Cleanup project objects

# Delete VM
openstack server list --project=test-project --os-cloud=dev
openstack server delete test-project-vm

# Delete floating IP
openstack floating ip list --project=test-project --os-cloud=dev
openstack floating ip delete 1.2.3.4

# Delete router
openstack router list --project=test-project --os-cloud=dev
openstack subnet list --project=test-project --os-cloud=dev
openstack router remove subnet test-project-router test-project-subnet
openstack router delete test-project-router

# Delete subnet
openstack subnet list --project=test-project --os-cloud=dev
openstack subnet delete test-project-subnet

# Delete network
openstack network list --project=test-project --os-cloud=dev
openstack network delete test-project-net

# Delete security group
openstack security group list --project=test-project --os-cloud=dev
openstack security group delete test-project-sec

# Delete keypair
openstack keypair list
openstack keypair delete test-project-key

# Delete project
openstack project list --domain foo --os-cloud=dev
openstack project delete test-project

Optional
# Delete ports
openstack port list --project=test-project --os-cloud=dev
openstack port delete 454ad2a7-b9a8-4d57-ba2f-93e482b40302

# Delete specific security group rules
openstack security group rule list test-project-sec
openstack security group rule delete 49f472b6-afa8-479d-bc92-49cde49161f4
openstack security group rule delete 9a5a601c-fdad-419a-acf8-919b25dc93b5

# Delete domain
openstack domain list --os-cloud=prod-pko
openstack domain delete foo

Links
https://docs.openstack.org/python-openstackclient/latest/cli/command-list.html