Flush Through node.js or RESTful endpoint

FLUSH isn’t a N1QL statement. You’ll have to issue the command via SDK.
See this for guidance: How do I invoke flush()?