Definition of undocks:
(v) :
(transitive, computing) To remove from a docking station.
(v) :
(transitive, computing) To drag (a user interface element, such as a toolbar) away from its fixed position so that it floats freely.
(v) :
(transitive) To remove (a ship) from a dock.
(v) :
(astronautics) To depart a spaceship from a dock/berth/mount/mooring under its own power