It is not possible to entirely remove the Spotify listening history. However, one can clear recent searches by accessing the Search tab and clicking the search bar, after which recent searches can be cleared. To prevent the creation of a history, one should turn on the Private Session feature located in the Settings menu so that the listening activity remains anonymous.