Functionality to delete items