Delete Metafields in Bulk with CSV Import
You can use the CSV import feature to delete metafields in bulk by leaving value columns empty and enabling the "delete empty metafields" option.
CSV Requirements
Your CSV file needs only 4 columns:
| Column | Description |
|---|---|
| Resource identifier | Product ID, handle, etc. |
| Metafield namespace | The namespace of the metafield to delete |
| Metafield key | The key of the metafield to delete |
| Metafield value | Leave empty to delete; populate to update |
Both Rows and Columns CSV formats are supported.
How It Works
- Prepare a CSV with your resource identifiers and target metafield namespace/key
- Leave the value column empty for metafields you want to delete
- Upload the CSV via Bulk Actions → Import
- Enable the "Delete empty metafields" setting
- Start the import
When processing:
- Blank value columns → metafield is deleted
- Populated value columns → existing metafield is updated with the new value
This approach gives you fine-grained control you can delete some metafields while updating others in a single import operation.