benten delete

目的

  • リポジトリのデータを全消去します (登録名を指定)。

Warning

事前にログイン認証を行う必要があります。

Note

デフォルトではローカルストレージ側のデータは消去しません。ローカルストレージ側もデータ消去する際には "-d" オプションを付与します。

利用例

  • Help
$ benten.py delete -h
usage: benten delete [-h] [--current_directory [CURRENT_DIRECTORY]]
                     [--flag_veto_init] [--flag_delete_local_storage_files]
                     register_basename

positional arguments:
  register_basename     register_basename

optional arguments:
  -h, --help            show this help message and exit
  --current_directory [CURRENT_DIRECTORY], -c [CURRENT_DIRECTORY]
                        current directory
  --flag_veto_init, -v  flag to veto init_index
  --flag_delete_local_storage_files, -d
                        flag to delete local storage files
  • リポジトリ側のデータ消去
$ benten.py delete test
### benten delete ###
[LocalStorage::authorize] access_token = b2f1db85266043759ced20a1b5053fb9
{
    "file_list":[
        {
            "size":44,
            "name":"/SPring-8/BL14B2/test/test.json",
            "time":"2018-08-15 18:14:05",
            "hash":"4cdb2c555c08a9d787a2e61103dff0f8",
            "uuid_name":"f711865e-e391-48a3-8a3d-6ce497137ce8"
        },
        {
            "size":425,
            "name":"/SPring-8/BL14B2/test/test.system.json",
            "time":"2019-03-09 21:18:35",
            "hash":"49b71db137ce7da3b8ce26f62f643722",
            "uuid_name":"eca2bee5-9440-4469-b8cf-e96b61e3640f"
        }
    ],
    "flag_delete_local_storage_files":false,
    "register_name":"/SPring-8/BL14B2/test/test"
}
  • リポジトリ側及びローカルストレージ側の両方のデータを消去
$ benten.py delete test -d
### benten delete ###
[LocalStorage::authorize] access_token = b2f1db85266043759ced20a1b5053fb9
{
    "file_list":[
        {
            "size":44,
            "name":"/SPring-8/BL14B2/test/test.json",
            "time":"2018-08-15 18:14:05",
            "hash":"4cdb2c555c08a9d787a2e61103dff0f8",
            "uuid_name":"5f51db7f-50d5-4f1b-82f8-13a7651b4c05"
        },
        {
            "size":425,
            "name":"/SPring-8/BL14B2/test/test.system.json",
            "time":"2019-03-09 21:18:35",
            "hash":"49b71db137ce7da3b8ce26f62f643722",
            "uuid_name":"d941ce84-b2eb-451a-9c08-d8e0d13b4ba9"
        }
    ],
    "flag_delete_local_storage_files":true,
    "register_name":"/SPring-8/BL14B2/test/test"
}