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