Cannot remove obj from frame meta

well, my code is mostly the same with your code, i try to delete all objects in frame but it just delete one or two random objects.