Title: Deleted attribute issue.
Last modified: February 2, 2023

---

# Deleted attribute issue.

 *  Resolved [forikatamas](https://wordpress.org/support/users/forikatamas/)
 * (@forikatamas)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/deleted-attribute-issue/)
 * If I delete an attribute that is connected to about 120 products. then it disappears
   from everywhere (it looks ok) but it continues to exist in the background. If
   I re-create an attribute with the same slug, it will immediately appear in the
   120 products.
 * The problem is that these attributes running in the background are seen by the
   export/import module…
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdeleted-attribute-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/deleted-attribute-issue/#post-16436259)
 * Hi [@forikatamas](https://wordpress.org/support/users/forikatamas/) ,
 * Thanks for reaching out!
 * What you are experiencing is default WooCommerce core behavior. WooCommerce stores
   attribute information in the database, and deleting an attribute only removes
   its visibility from the front end.
 * If you re-create an attribute with the same slug, it will automatically be reapplied
   to the same products that were previously connected to it. This is because the
   attribute data is stored in the database, and re-creating the attribute with 
   the same slug references the same data in the database. The products that were
   previously connected to the attribute will then be linked to the re-created attribute
   which could result in the reappearance of the deleted attribute when using export/
   import modules.
 * To properly remove an attribute and ensure that it doesn’t reappear when re-creating
   the attribute would require a SQL command, as this needs to be deleted from your
   database.
 * I found a previous thread [here](https://wordpress.org/support/topic/how-to-delete-all-product-attributes/)
   that may be helpful.
 * It’s important to remember that removing data from the database can be a complex
   process and could potentially cause problems with your WooCommerce installation.
 * Be sure to thoroughly test any changes before applying them to a live site, and
   [backup](https://woocommerce.com/document/backup-wordpress-content/) your [full site and database](https://wordpress.org/support/article/wordpress-backups/)
   before making any changes.
 * Hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Deleted attribute issue.’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [attribute](https://wordpress.org/support/topic-tag/attribute/)

 * 1 reply
 * 2 participants
 * Last reply from: [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/deleted-attribute-issue/#post-16436259)
 * Status: resolved