delete correctly in the provider too