GetParameterNames task now deletes objects that no longer exist from DB