Such towns and cities may deny or revoke any license granted to conduct any such business when, in the judgment of the mayor or intendant, such ordinances are not complied with.