phpclassic / php-shopify

PHP SDK for Shopify API
Apache License 2.0
568 stars 211 forks source link

Unable to delete metafield #242

Closed ryan-hanson closed 2 years ago

ryan-hanson commented 2 years ago

I was able to create some metafields at the product level and retrieve the data just fine. However, I'm having trouble deleting the fields afterwards. I see in the Shopify API that you simply just delete metafields using the ID, but the line below isn't working. Is this something I'm able to do through the SDK?

$shopify->Metafield(19802892271704)->delete();

ryan-hanson commented 2 years ago

Apologies, I made a newbie mistake with this. I was using the wrong ID. The code above works as expected.