But there's always plausible deniability :)
Even if you cleared the device before it was taken into custody, they could still have a case if they can reasonably show that you cleared it with suspicion that it would be taken into custody. Obviously, that can be difficult to show, depending on the burden of proof required.
http://arstechnica.com/tech-policy/2015/09/forcing-suspects-...
(but they might just have you enter them yourself instead :/)