I am new to SO and Programming. And i found this SO question: How to dynamically delete object using django formset The author says here - https://stackoverflow.com/a/48075686/11523612 that when the user refreshes the page the item is still in the cart. But i dont understand why still stays in the cart when the ajax view is called and the object is deleted?