I identified some myths while working with vacuum command spark 3.5.x.
1. vacuum command is not working with days. Instead it's retain clause is asking explicitly to supply values in hours. I tried many times, and it is throwing parse syntax error (why ???).
![sangram11_0-1730255825227.png sangram11_0-1730255825227.png](/t5/image/serverpage/image-id/12373iC2F6EA35D3FDDAA5/image-size/medium?v=v2&px=400)
2. You cannot execute vacuum command if delta.enableChangeDataFeed is enabled. Because it cannot remove files from _change_data folder if it contains parquet files in it.
![sangram11_1-1730256066071.png sangram11_1-1730256066071.png](/t5/image/serverpage/image-id/12374i702346078A031D6F/image-size/medium?v=v2&px=400)
So, your table history is not deleted by vacuum command is CDF is enabled.
Let me know if you want to pass me some knowledge on vacuum command. Because I feel it is not doing its work as expected.