You can clear your history on Firefox manually, or set it to clear automatically whenever you close Firefox.
To clear cookies on Microsoft Edge, you'll need to access the browser's "Privacy and services" menu.