facebook-for-woocommerce icon indicating copy to clipboard operation
facebook-for-woocommerce copied to clipboard

Delete and reset all products from Facebook

Open johndcoy opened this issue 3 years ago • 6 comments

Feature requests

It would be nice to have a “Delete all products from Facebook” tool that creates batches using the Action Scheduler. The expectation would be that the actions would delete the product from Facebook then remove all stored meta within the WooCommerce site for each product.

This should be triggered automatically if a product is ever added to the trash.

Here is a link to a public script that is helpful:

https://docs.woocommerce.com/document/facebook-for-woocommerce/facebook-for-woocommerce-delete-or-reset-all-facebook-products/

Developers

We welcome your contributions. 🙌 Here are a few tips to help us work together:

  • If you submit a new PR, please ensure the description explains why the change is needed, follows WordPress coding standards, is compatible with PHP 5.6, and contains a small changeset — PRs with massive changesets are likely to be rejected or asked for revisions, as they’re much harder to review for potential issues.
  • If you’d like to propose a more substantial changeset, feel free to start a discussion of why and the proposed implementation in this issue! Giving our team a heads up increases the likelihood of changes being accepted quickly.
  • Internet points are available for PRs that include test coverage! 🏆 💯 Especially failing + passing tests for bug fixes.

johndcoy avatar May 17 '21 15:05 johndcoy

Wish I had found this sooner I just deleted my entire catalogue and am now resyncing https://github.com/woocommerce/facebook-for-woocommerce/issues/1987

mitchellkrogza avatar Jun 03 '21 08:06 mitchellkrogza

Another way to delete or bulk-reset the catalogue is to use a feed file (data source) with a replace schedule: https://www.facebook.com/business/help/2284463181837648

With Replace schedule, your new file completely overwrites all of the information in your previous file. It adds new items, updates existing items and deletes any items that aren't in the new file. Replace is the default if you set a schedule when you upload a new data feed file for the first time.

haszari avatar Jun 15 '21 03:06 haszari

Another way to delete or bulk-reset the catalogue is to use a feed file (data source) with a replace schedule: https://www.facebook.com/business/help/2284463181837648

With Replace schedule, your new file completely overwrites all of the information in your previous file. It adds new items, updates existing items and deletes any items that aren't in the new file. Replace is the default if you set a schedule when you upload a new data feed file for the first time.

Thanks @haszari I'll try this next time much easier

mitchellkrogza avatar Jun 15 '21 04:06 mitchellkrogza

Hello @haszari ! I referenced your comment to bulk delete the catalog for Facebook using Replace Schedule, but I am not able to complete this task. Did I miss something? It just adds new feeds like this: https://d.pr/i/PmBxAL (Product is indeed added when the feed is updated, but does not replace the whole catalog). As per the FB doc, it says it will delete any products that are no longer listed in the same/new file detected.

It adds new items, updates existing items and deletes any items that aren't in the new file.

namiokuzono avatar Jun 16 '22 22:06 namiokuzono

Hello @haszari ! I referenced your comment to bulk delete the catalog for Facebook using Replace Schedule, but I am not able to complete this task. Did I miss something?

I don't know sorry – I haven't actually tried this, that was an idea from the docs. Things may have changed too.

haszari avatar Jun 16 '22 22:06 haszari

Did I miss something? It just adds new feeds like this: https://d.pr/i/PmBxAL

Screenshot on 2022-06-16 at 16-18-51

If you haven't already, make sure you delete all the other feed files in Facebook, and only add a single Replace schedule feed.

haszari avatar Jun 16 '22 22:06 haszari

36520332-zen

chrism245 avatar Aug 20 '22 13:08 chrism245

Closing this in favour of #2129. Deleting all products that are matching WC catalog is possible. Problem happens only when we have shadow products as described in #2129

budzanowski avatar Sep 07 '22 11:09 budzanowski