Stellaris clearflag Console Command

Documentation and detailed help with working examples.

clearflag Command


This command clears an event flag on a specified target.

clearflag [Flag Type] [Flag Name] [Target ID]


Flag Type
The type of event flag you wish to clear towards a specified target (e.g. global).
Flag Name
The event flag you wish to clear.
Target ID
The ID of the target you wish to clear the event flag of.


Here are examples of how to use clearflag.

clearflag global prethoryn_invasion_happened
This command will clear the flag 'Prethoryn Invasion Happened' from your game.
Looking for Stellaris console commands?

Search our complete list!

Quick Overview

The clearflag command in Stellaris is used to remove a specific event flag from a target.

Event flags are usually set during gameplay and can influence different aspects of the game, such as triggering specific events or altering behaviors of certain in-game entities.

By using the clearflag command, you can manually remove these flags from the game's designated target.

How to Open the Command Console

In Stellaris, cheats are executed from the command console, a text box that you type commands into.

To open the command console press the ~(tilde) key, which is typically located under ESC (escape).

If your keyboard does not have that key, or pressing ~ does not work, try the following keys:

  • ~
  • SHIFT + 2
  • SHIFT + 3
  • ALT + 2 + 1

Type your command into the console, and then press ENTER .

Was this helpful?