DROP GIT REPOSITORY

从当前/指定的架构中移除指定的 Snowflake Git 存储库克隆。

See also:

ALTER GIT REPOSITORY, CREATE GIT REPOSITORY, DESCRIBE GIT REPOSITORY, SHOW GIT BRANCHES, SHOW GIT REPOSITORIES, SHOW GIT TAGS

语法

DROP GIT REPOSITORY [ IF EXISTS ] <name>

参数

name

指定要删除的 Git 存储库克隆的标识符。

If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

For more information, see Identifier requirements.

使用说明

  • 删除的 Git 存储库无法恢复,必须重新创建。
  • When the IF EXISTS clause is specified and the target object doesn’t exist, the command completes successfully without returning an error.

示例

DROP GIT REPOSITORY my_repository;
+-------------------------------------+
|                status               |
+-------------------------------------+
| MY_REPOSITORY successfully dropped. |
+-------------------------------------+