여기 써있는 것은 이전에 해온 프로젝트의 각 요소들의 uuid 또는 인스턴스의 이름으로 작성한 예시들이므로 각 명령어를 수정해서 사용할 필요가 있다.
openstack server delete webserver
openstack server delete dbserver
openstack volume list
openstack volume delete webserver-add
openstack volume delete 107cef29-4e16-42cb-bcb8-cd0f6ee11036
openstack floating ip list
openstack floating ip delete 192.168.7.118
openstack floating ip delete e5f60d52-1e86-4382-805c-58368a180e54
보통은 delete가 아니라 release라는 표현을 쓴다. (제거가 아니라 해제라는 뜻)
openstack router list
openstack router delete 02fad12e-0300-4526-8f20-d0ad7cc63f4f
# 포트 존재 에러 발생 `has ports still attached`
openstack port list
openstack port delete 4c02975e-f76a-459b-827d-132bb7a106ef
# 인터페이스 존재 에러 발생 `has device owner network:router_interface.`
openstack router remove subnet router internal-subnet
openstack router unset --external-gateway router
# 이제 다시 라우터 삭제
openstack router delete 02fad12e-0300-4526-8f20-d0ad7cc63f4f
openstack subnet list
openstack subnet delete internal-subnet
openstack network list
openstack network delete internal-network
서브넷부터 지워야 네트워크 삭제, external은 관리자 권한
openstack subnet delete external-subnet
openstack network delete external-network
openstack flavor list
openstack flavor delete 6
openstack flavor delete m1.micro
openstack image list
openstack image delete centos7
openstack image delete 73c9f87e-3264-498a-9d1f-e0ee4cdd3aa9
openstack user list
openstack user delete cli-user
openstack user delete 29528be134664335bc820bbf54ff6f19
service(Nova, Neutron 등)도 user로 존재하므로 삭제하지 않게 주의
openstack project list
openstack project delete cli-project
openstack project delete 3b874fd7106d4ca09b494245d7899de6
openstack stack list
openstack stack delete ...
cli 생성과정의 역순으로 진행되며, 사용되는 명령어도 반대로 사용된다.
set이면 unset, create면 delete형식으로.