I would like to drop all pipes in a snowflake schema that match a pattern.
You can show pipes that match a pattern as shown here.
Example: show pipes like '%NAME_LIKE_THIS%' in MY_DB.MY_SCHEMA
However, it doesn't appear that a similar functionality exists for drop pipe.
I'm thinking of creating a stored procedure that will take in pattern
and schema
parameters, and iterate through each and drop but I'm hoping there's a better/easier way.
Thank you in advance.