A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.snowflake.com/en/developer-guide/python-connector/../../sql-reference/sql/remove below:

Website Navigation


REMOVE | Snowflake Documentation

REMOVE

Removes files from either an external (external cloud storage) or internal (i.e. Snowflake) stage.

For internal stages, the following stage types are supported:

REMOVE can be abbreviated to RM.

See also:

LIST

Syntax
REMOVE { internalStage | externalStage } [ PATTERN = '<regex_pattern>' ]

Copy

Where:

internalStage ::=
    @[<namespace>.]<int_stage_name>[/<path>]
  | @[<namespace>.]%<table_name>[/<path>]
  | @~[/<path>]

Copy

externalStage ::=
    @[<namespace>.]<ext_stage_name>[/<path>]

Copy

Required parameters
internalStage | externalStage

Specifies the location where the data files are staged:

@[namespace.]int_stage_name[/path]

Files are in the specified named internal stage.

@[namespace.]ext_stage_name[/path]

Files are in the specified named external stage.

@[namespace.]%table_name[/path]

Files are in the stage for the specified table.

@~[/path]

Files are in the stage for the current user.

Where:

Note

If the stage name or path includes spaces or special characters, it must be enclosed in single quotes (e.g. '@"my stage"' for a stage named "my stage").

Optional parameters
PATTERN = 'regex_pattern'

Specifies a regular expression pattern for filtering files to remove. The command lists all files in the specified path and applies the regular expression pattern on each of the files found.

Usage notes Examples

Remove all files from the path1/subpath2 path in a named internal or external stage named mystage:

REMOVE @mystage/path1/subpath2;

Copy

Remove all files from the stage for the orders table:

Use the abbreviated form of the command to remove files whose names match the pattern *jun* from the stage for the current user:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4