The following queries will delete Woocommerce Global Attributes in WordPress.

Replace the wp_ database prefix accordingly.

Query to delete products from the WordPress database:

DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%');

Query to delete product taxonomy data from the WordPress database:

DELETE FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%';

Query to delete product relationship data from the WordPress database:

DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy);

A global attribute which is setup at the system level is different to a custom attribute set at a product level.
This query will delete all product global attributes from the system.
Custom attributes will need to be manually deleted from a product.
Or, delete the products.