How to clear "run a comand" history?

Solution 1:

There is no user exposed way to clear the command history of the Alt+F2 "Run a Command" dialog, but you can use the following command:

gsettings reset org.gnome.shell command-history