Delete and re-create an index pattern

The ID of my index pattern has changed (I don't know how but it has changed) so the dashboards can't find the index pattern anymore, maybe you know how to edit this id so I can put the old one back ?