The building official may revoke a permit upon determination that the construction, erection, alteration, repair, moving, demolition, installation or replacement of the building or structure, or electrical, gas, mechanical or plumbing systems is in violation of this chapter.