If the Owner/customer includes a requirement for a purge in the project specification, it takes precedence over the code since it is more restrictive than the code. The Owner/customer can include more restrictive requirements, but generally, not less restrictive requirements if ASME applies.
If the AWS structural welding code applies, the Engineer, representing the Owner, can modify the code to suit specific project requirements.
Best regards - Al