Hi @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 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?your?full site and database before making any changes.
Hope this helps!