Bypass script validation

Hey all,
I’m wondering if it’s possible to bypass validation from a scrip, so that users are still shown a mandatory field but it is still possible to clear the field using DeleteCustomFieldValue.
Thank you!