After carefully deleting all the references in editor and then deleting the material and the connected materials it works!