[fix] delete referenced items too when deleting a source