While trying backup I've detected some orphan records in DB here and there.
Each time one context (block, activity, course) is deleted... dependent information should be deleted too. This includes:
- role assignments and overrides
- block instances and positions
Please, revise all the block/activity/course deletions... we are leaving a lot of (mainly context based information) 100% orphaned.