Auto Removing Sold Out Products from the Cart

Hi, my customers have been asking if there is a way for a shopping cart to update automatically when things are sold out. Currently, it seems that the cart is making people look for items that are sold out, and remove manually. Is there a way for me to make this a setting in the shop where the cart just takes them out for them when checking out?