You haven't understood what the remove command does. As explained on the manual, the remove command remove a door *entirely*, including all its associated services.
If you want GSX to IGNORE the door's STATUS, so it won't ask to open it anymore, you need to use the following command:
code = 0