Mercurial > hg > orthanc-book
comparison Sphinx/source/users/rest.rst @ 712:6c4fcd1ad337
bulk deletion
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Jun 2021 18:04:04 +0200 |
parents | b931786385e6 |
children | 8a247c645ac6 |
comparison
equal
deleted
inserted
replaced
711:4f658c25addd | 712:6c4fcd1ad337 |
---|---|
1125 $ curl -X DELETE http://localhost:8042/studies/c4ec7f68-9b162055-2c8c5888-5bf5752f-155ab19f | 1125 $ curl -X DELETE http://localhost:8042/studies/c4ec7f68-9b162055-2c8c5888-5bf5752f-155ab19f |
1126 $ curl -X DELETE http://localhost:8042/series/cceb768f-e0f8df71-511b0277-07e55743-9ef8890d | 1126 $ curl -X DELETE http://localhost:8042/series/cceb768f-e0f8df71-511b0277-07e55743-9ef8890d |
1127 $ curl -X DELETE http://localhost:8042/instances/8e289db9-0e1437e1-3ecf395f-d8aae463-f4bb49fe | 1127 $ curl -X DELETE http://localhost:8042/instances/8e289db9-0e1437e1-3ecf395f-d8aae463-f4bb49fe |
1128 | 1128 |
1129 | 1129 |
1130 Starting with Orthanc 1.9.4, it is also possible to ``POST`` on the | |
1131 new route ``/tools/bulk-delete`` to delete at once a set of multiple | |
1132 DICOM resources that are not related (i.e. that don't share any parent | |
1133 DICOM resource). A typical use case is to delete a list of DICOM | |
1134 instances that don't belong to the same parent patient/study/series. | |
1135 The list of the :ref:`Orthanc identifiers <orthanc-ids>` of the | |
1136 resources to be deleted (that may indifferently correspond to | |
1137 patients, studies, series or instances) must be provided in an | |
1138 argument ``Resources`` in the body of the request. Here is a sample | |
1139 call:: | |
1140 | |
1141 $ curl http://localhost:8042/tools/bulk-delete -d '{"Resources":["b6da0b16-a25ae9e7-1a80fc33-20df01a9-a6f7a1b0","d6634d97-24379e4a-1e68d3af-e6d0451f-e7bcd3d1"]}' | |
1142 | |
1143 | |
1130 Clearing log of changes | 1144 Clearing log of changes |
1131 ^^^^^^^^^^^^^^^^^^^^^^^ | 1145 ^^^^^^^^^^^^^^^^^^^^^^^ |
1132 | 1146 |
1133 :ref:`As described above <changes>`, Orthanc keeps track of all the | 1147 :ref:`As described above <changes>`, Orthanc keeps track of all the |
1134 changes that occur in the DICOM store. This so-called "Changes Log" | 1148 changes that occur in the DICOM store. This so-called "Changes Log" |