Bundle log purging into a single database call
purge_log: Run multiple DB calls in a transaction
Content length should be nil if status wasn't success