From 4f65f2240111cb74af1f87595965c2cbb985adf7 Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Mon, 13 May 2024 21:14:53 +0200 Subject: [PATCH] Add delete data snippet (#2907) --- docs/cli.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/cli.md b/docs/cli.md index b88a6ca5d4..92c767ce8d 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -319,6 +319,16 @@ viam data database configure --org-id=abc --password=my_password123 viam data database hostname --org-id=abc ``` +Viam currently only supports deleting approximately 500 files at a time. +To delete more data iterate over the data with a shell script: + +```sh +# deleting one hour of image data +for i in {00..59}; do + viam data delete binary --org-ids= --mime-types=image/jpeg,image/png --start=2024-05-13T11:00:00.000Z --end=2024-05-13T11:${i}:00.000Z +done +``` + #### Command options