Added functionality for deleting a detail type from the button in the table.