suspend – Return from sleep mode with different set of connected hard drives

When I’m putting my Debian 10 to sleep (suspending), and disconnecting an external hard-drive (not the bootable one, which is flash drive), when I’m trying to return it enters emergency mode, even after reinstalling GRUB, probably because the Swapfile still exist and is the same as before the reinstallation.

It prints to the screen that there’s a job to start that missing hard drive.

Is it possible to prevent this job in advance?