Stand your ground and know your rights. The po-lice have no right to delete your pictures for any reason, even if they're of their motorcycle. If you are asked to stay where you are ask if you are being detained. If the answer is no simply walk away.
The only way to combat abuse of power is to know and exercise your rights.