ChatGPT sucks at VEX code. Most times it just makes up stuff. In this case there is no deletion flag. Thats an undeclared integer attribute, which is incorrect VEX code formatting. You would instead use removepoint(0, inside the if s