Device Location

Device Location

I have stored on some devices the location and it works fine, but on the devices I have it to empty the bucket every 3 month to save data. The problem is every time the bucket gets emptied, the location gets deleted. Is there a way to empty the bucket, but preserve the location variable of the device?

thank you