$ ceph osd tree
ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 0.68558 root default
-2 0.34279 host osd-2
2 0.34279 osd.2 DNE 0
-3 0.34279 host osd-5
4 0.34279 osd.4 DNE 0
$ ceph osd crush remove osd.2
removed item id 2 name 'osd.2' from crush map
$ ceph osd crush remove osd.4
removed item id 4 name 'osd.4' from crush map
$ ceph osd tree
ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 0 root default
-2 0 host osd-2
-3 0 host osd-5
$ ceph osd crush rm osd-2
removed item id -2 name 'osd-2' from crush map
$ ceph osd crush rm osd-5
removed item id -3 name 'osd-5' from crush map
$ ceph osd tree
ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 0 root default