Hi @xumbrella
Yes, deleting an attribute through the “Products > Attributes” section in the WordPress dashboard will remove the attribute and all its associated terms. No data from the products will be removed, except for the attribute and its terms. Since you already plan to migrate the terms to custom meta fields, deleting the attribute should not cause any issues.
Here’s the step-by-step process:
1. First, make sure you have successfully migrated all the terms to custom meta fields and have verified that the migration process was completed accurately.
2. Next, go to your WordPress dashboard and navigate to “Products > Attributes”.
3. Find the attribute you want to delete, and click on the “Delete” link under the attribute name. A confirmation popup will appear.
4. Click “OK” on the confirmation popup to delete the attribute. All associated terms will also be deleted. This action is irreversible, so ensure that you have backed up your data before taking this step.
Since you have a large number of products, it’s a good idea to perform this process on a staging environment first to ensure there are no unexpected issues. After you’ve verified that everything works as expected, you can proceed with the changes on your live site.
Remember to perform a complete backup of your website before making any significant changes, so you have a safe point to revert to if something goes wrong. Using a backup plugin like UpdraftPlus ocan help you create and manage backups easily.
Thread Starter
Sam
(@xumbrella)
Hello, thanks for the advice. I did test it on my staging site and it timed out (i had over 7000 terms!!!). For my live site I will manually delete the terms first in batches and then delete the attribute itself.
Given the huge numbers of terms for this taxonomy, is it likely that this could have been causing performance issues on the front end of my site?
thanks
HI @xumbrella
I did test it on my staging site and it timed out (i had over 7000 terms!!!). For my live site I will manually delete the terms first in batches and then delete the attribute itself.
Performing the process on a staging site would be the best idea since you will be able to check if there will be issues along the way. I’d recommend cloning your site to a staging environment without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.
I also would like to add that you can check the premium plugin Bulk Edit Products, Prices, and Attributes that easily bulk edits any WooCommerce product fields and meta values.
Given the huge numbers of terms for this taxonomy, is it likely that this could have been causing performance issues on the front end of my site?
I cannot say this for sure as there are several factors to consider regarding the performance issues of your site.
To check this further, can you please share with us further information about the performance issues you are experiencing on your site?
If a screenshot would be helpful, I’d recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.