I've been looking into this as well, and it is possible to disconnect the battery (not trivial, as you must disconnect both the 12v and HV battery), there are some complications.
I tried disconnecting the 12v battery, and it has no effect on the car (it gets 12v also from the main battery). I think, to go further, here is another untested solution:
1) Disconnect the HV battery (following proper instructions, possibly disconnecting 12v battery first)
2) Run the car off the 12v battery in the frunk
3) Remove all belongings from the car
4) Open the frunk
5) Exit the car and lock it
6) Walk off a short distance and close the Tesla app (phone key)
7) Disconnect the 12V battery negative terminal (in frunk)
8) Close and "lock" the frunk
9) Make sure no power (test doors or something)
To return, unlock the frunk using emergency access in tow hole (some say a 9v battery will work), connect 12v battery, unlock the car, and follow steps to reconnect HV power.
This is just a theory - in theory it could work, and there is some dangers and skill involved.
The doors should not be opened without the 12v battery as the glass will break (not a problem as you want the car locked, but a necessary warning).
The manual also states this "Make sure to reconnect the high voltage controller harness connector before reconnecting 12V power. Reconnecting 12V power before reconnecting the high voltage controller harness connector might result in the high voltage battery becoming over discharged."
I'm guessing that this is a typo, and they mean that the 12v battery would be over disconnected, but since there is no way to know what they are saying, it is a bit concerning.
I already damaged the car removing the back seat cushion (cheap plastic clips broke) and just looking at the orange colored make me cancel testing this at least for the near future.
So it is possible, but are you able to learn and take risks with an expensive car for the sake of parking (?). I've been on these forums for a while and this question gets asked a lot in various forms and I've not ever seen anyone do it.