離れる and 去る: moving away from a reference and leaving a place
Compare moving away from a door with leaving a room or town, without inferring a permanent departure.
Increasing distance from a reference
離れる, read はなれる, can describe moving away from a reference. 扉から少し離れてください。 asks someone to move a little away from the door.
駅から離れた場所に住んでいます。 says that someone lives in a place away from the station. It describes the home’s location, rather than travel currently starting at the station.
Leaving a place where someone was
去る, read さる, can describe leaving a place. 客は部屋を去りました。 says that the guest left the room. 客 identifies the person who left.
翌朝、町を去りました。 says that someone left the town the following morning. It does not specify the next destination or a future return.
Distance from an object and departure from an area
扉から離れても、部屋の中にいることはできます。 says that someone can move away from the door and still remain inside the room. Distance from the object does not require leaving the room.
その場を去りましたが、後で戻りました。 says that someone left the spot but returned later. 去る alone does not establish a permanent farewell.
Does a request to 扉から離れる mean leaving the room?
Show the answer and why
The expression alone does not require that. It asks for distance from the door without specifying departure from the room.

