Question 1241 · 1323 in bank
Which command can be used to delete staged files from a Snowflake stage when the files are no longer needed?
Show answer
Answer: C
Explanation
REMOVE Removes files from either an external (external cloud storage) or internal (i.e. Snowflake) stage. https://docs.snowflake.com/en/sql-reference/sql/remove Staged files can be deleted from a Snowflake stage (user stage, table stage, or named stage) using the following methods: Files that were loaded successfully can be deleted from the stage during a load by specifying the PURGE copy option in the COPY INTO command. After the load completes, use the REMOVE command to remove the files in the stage. https://docs.snowflake.com/en/user-guide/data-load-considerations-manage
Source: Adapted from community discussion — 0e504b5