Try stopping the IIS service first, then delete again.