|if "%size%"=="180,000,000" del test /s /q|
One megabyte is 1,048,576 bytes, not 1,000,000. Also, you're doing text comparison and expecting it to give identical results as a numerical comparison. It shouldn't be an issue as long as you're doing straight equality, but an equality test is ineffectual for the desired purpose.
How To Ask Questions The Smart Way