Added functionality for detail_type deletion.