beforeDelete callback: remove attached documents when deleting records