Yes, Gmail API does not support this out of the box. However, you can download the raw email, update it locally, upload the modified copy, and then delete the original. This is how the web app (Unattach) described in the blog post does it. Disclaimer: I am the author.
Havent used it in awhile so not sure if anything changed
[1] https://stackoverflow.com/questions/46434390/remove-an-attac...