Milvus automatically merges the inserted vector data to segments. A collection can contain multiple segments. After deleting some vector data in a segment, the system cannot automatically release the space occupied by the deleted vector data. So, you need to compact the segments in the collection to free up extra space.
>>> milvus.compact(collection_name='test01', timeout='1')