ti fs delete-file
リモートのファイルまたはディレクトリを削除します。このコマンドのエイリアスは ti fs rm です。
構文
ti fs delete-file
--path <string>
[--dry-run]
[--file-system-id <string>]
[--fs-token <string>]
[--help]
[--recursive]
[--version]
オプション
--path <string>: TiDB Cloud file system 内のファイルまたはディレクトリのパス。[required]--dry-run: 変更を適用せずにリクエストを検証します。--file-system-id <string>: ファイルシステムを選択します。TI_FS_FILE_SYSTEM_IDを設定することもできます。--fs-token <string>: file system トークンを設定します。省略した場合、このコマンドはTI_FS_TOKEN環境変数を使用します。どちらも指定されていない場合、このコマンドは選択した file system 用にローカルに保存されたトークンを使用します。--help: ヘルプ情報を表示します。--recursive: ディレクトリを再帰的に削除します。--version: バージョン情報を表示します。
すべてのコマンドで共通のオプションについては、グローバルオプション を参照してください。
例
リモートファイルを削除する場合:
# Remove one object from the selected file system. ti fs delete-file --file-system-id <file-system-id> --path /reports/obsolete.mdディレクトリを再帰的に削除する場合:
# Remove a directory and all of its descendants in one request. ti fs delete-file --file-system-id <file-system-id> --path /scratch --recursive