sync/unmount/etc., then echo 1 > /sys/block/(whatever)/device/delete