Skip to content

Commit f7f9f7d

Browse files
ODM-12782: support sample object deletion in manage-data endpoint (#525)
1 parent 9c6c301 commit f7f9f7d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

openapi/v1/manageData.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ paths:
9898
The objects will be marked for deletion. In case the selected object has more than one version, the endpoint deletes all of them. The following object types can be deleted by the endpoint:
9999
* `STUDY`
100100
* `SAMPLE_GROUP`
101-
* `LIBRARY_GROUP`
102-
* `PREPARATION_GROUP`
103-
* `CELL_GROUP`
104-
* `TABULAR_DATA`
101+
* `SAMPLE_OBJECT`
102+
* `LIBRARY_GROUP`
103+
* `PREPARATION_GROUP`
104+
* `CELL_GROUP`
105+
* `TABULAR_DATA`
105106
* `GENE_VARIANT`
106107
* `FLOW_CYTOMETRY`
107108
* `REFERENCE_GENOME`
@@ -110,6 +111,7 @@ paths:
110111
Moreover, if the selected object is linked to any other data, the endpoint will also delete the linked data associated with it according to the specified rules:
111112
* If you delete a `STUDY`, the entire study with all the listed group types and files, will be removed.
112113
* Deleting a `SAMPLE_GROUP` will result in the removal of all samples associated with this sample group, along with any linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`LIBRARY_GROUP`/`PREPARATION_GROUP`/`CELL_GROUP`. The linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`CELL_GROUP` will be deleted, even if it is linked to another metadata group.
114+
* Deleting a `SAMPLE_OBJECT` will result in the removal of that sample from the study, and it will not be displayed in the version history. If a `LIBRARY_OBJECT` or `PREPARATION_OBJECT` is linked to this `SAMPLE_OBJECT`, it will be deleted as well.
113115
* Deleting a `LIBRARY_GROUP` or `PREPARATION_GROUP` will result in the removal of all libraries or preparations associated with this group, along with any linked `TABULAR_DATA`/`CELL_GROUP`.
114116
* Deleting a `CELL_GROUP` will result in the removal of linked `TABULAR_DATA` (cell expression group).
115117
* If you delete `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`, all associated data, such as links and runs will be removed from ODM.

0 commit comments

Comments
 (0)