FIX post delete document references cleaning (tree, metas, relations)