Recently viewed items list (how to make)

Hi there, has anyone made a recently viewed items list? im looking for a way to create such a thing, but the ways that im thinking of making it, are too complicated. I would like to store the items of the list in local storage, and make it possible to delete any item from the list.

I hope you understand what im looking for, and i hope you have something in mind even if its not exactly the same,
feel free to help!
Thank you.