What is your ASE version?
Generally speaking ...
- make sure no databases have space allocated on the device; sp_dropsegment to ensure no future log allocations are made on the device fragment in question; perform some logged activity and truncate the log (eg, dump transaction) so as to remove/zero out any log pages that may have still resided on the device fragment in question; alter database/log off to remove the device fragment from the database
- drop the device from the dataserver; sp_dropdevice
- remove the device at the OS level; if running ASE 16.0 SP02 PL04 (or better) you may be able to perform this step via sp_dropdevice/dropfile
NOTE: There's likely a KBA/note about this operation ... I'll leave that to someone else to comment on
-----------
You can review the documentation re: Shrinking Databases for more details.