Implemented delete function for cart