add delete for index, type