Is there any API that can turn the flag off?

Is there any API that can turn the flag off?

There doesn’t seem to be an API to clear the flag in the MM API Doc.

If there is an API that can register and release flags, please let me know.

Or if there is another way, please let me know.