safe delete cases, forms, and sync logs in test setups

depends on https://github.com/dimagi/dimagi-utils/pull/79/