It is not possible to remove container, if it contains hidden element. While deleting the container, the newly container is created.