App deletion

These all need to be executed using the `tx`, not `r.db`.