Skip to content

Commit de2741e

Browse files
authored
Add doc about tools to delete objects in QCDB (#1607)
1 parent 40f542c commit de2741e

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

doc/FAQ.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,29 @@ If for some reason you don't want or can't use the QCG, the CCDB provides a web
7070

7171
### How to delete objects from the CCDB ?
7272

73-
By accessing http://ccdb-test.cern.ch:8080/truncate/path/to/folder you will delete all the objects at the given path. Careful with that please ! Don't delete data of others.<br/>In production it will of course not be possible to do so.
73+
#### The nuclear option
74+
75+
By accessing `http://ccdb-test.cern.ch:8080/truncate/path/to/folder/.*` you will delete all the objects at the given path. Careful with that please ! Don't delete data of others.<br/>In production it will of course not be possible to do so.
76+
77+
#### A set of run exported from the logbook
78+
79+
Use `o2-qc-repo-delete-objects-in-runs`. The `--help` will tell you all you need to know about this tool.
80+
`--print-list` is very useful to see what will be deleted.
81+
82+
Here is an example:
83+
```
84+
o2-qc-repo-delete-objects-in-runs --url http://localhost:8083 --path qc/EMC/.* --runs-csv-file /tmp/runs_standalone_bad_LHC22m.csv
85+
```
86+
87+
#### By time period
88+
89+
Use `o2-qc-repo-delete-time-interval`. The `--help` will tell you all you need to know about this tool.
90+
`--print-list` is very useful to see what will be deleted.
91+
92+
Here is an example:
93+
```
94+
o2-qc-repo-delete-time-interval --url http://localhost:8083 --path qc_async/EMC/MO/AsyncTrend --from 0 --to 1654706422910
95+
```
7496

7597
### My objects are not stored due to their size. What can I do ?
7698

0 commit comments

Comments
 (0)