Move user page deletion code to the special page

It is only used for tests, so it should be near the testing functions.

Change-Id: I72d6325fe11683b64916ff527fc8738961a28a0a