Fix purge for commands