Optimize the interface and support deleting item.