Skip to content

Commit

Permalink
Add delete data snippet (#2907)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored May 13, 2024
1 parent efb1ed2 commit 4f65f22
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<org-id> --mime-types=image/jpeg,image/png --start=2024-05-13T11:00:00.000Z --end=2024-05-13T11:${i}:00.000Z
done
```

#### Command options

<!-- prettier-ignore -->
Expand Down

0 comments on commit 4f65f22

Please sign in to comment.