'Django Shell Plus Clear History

Is there a command to clear the history of Django's Shell Plus?

I did not find any hints in the documentation or by typing ?.



Solution 1:[1]

Removing the ipython history (~/.ipython/profile_default/history.sqlite) did the job.

Solution 2:[2]

You can also use the readline python package to clear history of Django Shell:

import readline
readline.clear_history()

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 sevic
Solution 2 WMRamadan