This sample project explain how to do expandable and collapse with delete option in a table view.