Hi @josastro,
I trust you’re trying this code in your wp-config.php file as instructed here, correct?
Additionally, I’m curious to learn more, you say you can’t delete it, can you share more details? Do you mean you can’t delete the WooCommerce plugin altogether, or you can’t remove its data upon deletion?
Can you share any screenshots to illustate the issue, please?
If you mean you can’t remove the WooCommerce plugin this may be related to plugin dependencies, make sure to delete any plugin that depends on WooCommerce first in order to be able to delete WooCommerce.
I hope this helps so far!
-OP