Auto Delete Products
Automatically delete or archive products when removed from Square or WooCommerce.
Keep your catalogs clean by automatically removing products from one platform when they're deleted from the other.
Overview
With auto-deletion enabled:
- Deleted products sync between platforms
- Archived products become drafts
- Enable for each direction independently
- Prevents orphaned catalog items
Use with caution. Accidental deletions can cascade to both platforms.
How It Works
The behavior depends on whether a product is archived or deleted:
| Square Action | WooCommerce Result |
|---|---|
| Archived | Set to Draft |
| Deleted | Moved to Trash |
| WooCommerce Action | Square Result |
|---|---|
| Set to Draft | Archived |
| Moved to Trash | Deleted |
This mapping ensures consistency between how each platform handles inactive products.
Enable Auto Deletion
Woo to Square
Sync deletions from WooCommerce to Square:
- Go to SWS Pro > Settings > Products
- Find the Product Automation section
- Toggle on Enable auto product deletion under Woo to Square
- Click Save Changes
When you delete a WooCommerce product:
- Trashed products are deleted from Square
- Draft products archive the Square item
- Linked products are unlinked after deletion
Square to Woo
Sync deletions from Square to WooCommerce:
- Go to SWS Pro > Settings > Products
- Find the Product Automation section
- Toggle on Enable auto product deletion under Square to Woo
- Click Save Changes
When you delete a Square product:
- Deleted products move to WooCommerce trash
- Archived products become WooCommerce drafts
- Linked products are unlinked after deletion
Use Cases
Keeping Catalogs Clean
When you discontinue a product, deleting it from one platform automatically removes it from both.
Seasonal Products
Archive seasonal items in Square to set them to draft in WooCommerce, keeping them available for next season.
Product Consolidation
During catalog cleanup, deletions sync automatically so you only need to manage one platform.
Best Practices
Disable During Bulk Cleanup
If you're doing major catalog reorganization, consider temporarily disabling auto-deletion to prevent accidental cascading deletions.
Use Archive for Temporary Removal
Archive products in Square instead of deleting if you might need them again. They'll become drafts in WooCommerce rather than being trashed.
Review Before Deleting
Check both platforms before deleting products to ensure you understand what will be removed.
Troubleshooting
Products not being deleted
- Verify auto-deletion is enabled for the correct direction
- Check that products are properly linked
- Confirm webhook connectivity with Square
- Review sync logs for errors
Products going to draft instead of trash
- This is expected behavior for archived items
- If you want to fully delete, use the delete option rather than archive
- Check the source platform action matches your intent
Deletions not syncing in one direction
- Verify the specific direction is enabled
- Only one or both directions can be active
- Check that the product was linked before deletion