Single_line_text_field Value Can't be Cleared

Topic summary

A user reports an issue with the productVariantsBulkUpdate mutation (API version 2025-04) where attempting to clear a single_line_text_field metafield fails silently.

Problem Details:

  • Setting the metafield to an empty string, blank string, or null doesn’t work
  • The API returns “success” with no errors or warnings, despite the value not being cleared
  • The metafield definition has no validations configured

Current Workaround:

  • Setting the value to a ZERO WIDTH NO-BREAK SPACE character (\uFEFF) as a substitute for empty

Unresolved Question:

  • How to properly set this metafield type to a truly empty/blank value

The discussion remains open with no solution provided yet.

Summarized with AI on October 25. AI used: claude-sonnet-4-5-20250929.

Using productVariantsBulkUpdate v2025-04 to set a single_line_text_field metafield to nothing (empty string, blank string, null) does not work. single_line_text_field must have a value!

Metafield definition has no validations. No errors or warnings returned, just “success”.

To workaround this we set metafield value to ZERO WIDTH NO-BREAK SPACE (\uFEFF):poop:

How to set this to an empty string instead?

1 Like