// DeleteIndex deletes a collections index func DeleteIndex(c *mgo.Collection) { defer dendtimer(starttimer()) err := c.DropIndex("name") if err != nil { panic(err) } }