Is it possible to have an out of stock item simply no longer show up in the cart?

In this case I'm concerned about one of a kind items being sold and still showing, when there is no chance of replacing them.