Questions on unanchored POS structures

Hello everyone,

I have a simple question I can’t seem to find the answer to on the web.
How long would an unanchored structure near a POS last in space ?

For instance a corporate hangar or a small beam laser ?

Same question for a ship, is it until tempered with ?

Thank you!