File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1274,7 +1274,10 @@ def _get_online_dataset_format(dataset_id):
12741274
12751275
12761276def delete_dataset (dataset_id : int ) -> bool :
1277- """Deletes a dataset from the OpenML server.
1277+ """Delete dataset with id `dataset_id` from the OpenML server.
1278+
1279+ This can only be done if you are the owner of the dataset and
1280+ no tasks are attached to the dataset.
12781281
12791282 Parameters
12801283 ----------
@@ -1284,6 +1287,6 @@ def delete_dataset(dataset_id: int) -> bool:
12841287 Returns
12851288 -------
12861289 bool
1287- True if the deletion was successful. False otherwise
1290+ True if the deletion was successful. False otherwise.
12881291 """
12891292 return openml .utils ._delete_entity ("dataset" , dataset_id )
Original file line number Diff line number Diff line change @@ -550,7 +550,10 @@ def _create_flow_from_xml(flow_xml: str) -> OpenMLFlow:
550550
551551
552552def delete_flow (flow_id : int ) -> bool :
553- """Deletes a flow from the OpenML server.
553+ """Delete flow with id `flow_id` from the OpenML server.
554+
555+ You can only delete flows which you uploaded and which
556+ which are not linked to runs.
554557
555558 Parameters
556559 ----------
@@ -560,6 +563,6 @@ def delete_flow(flow_id: int) -> bool:
560563 Returns
561564 -------
562565 bool
563- True if the deletion was successful. False otherwise
566+ True if the deletion was successful. False otherwise.
564567 """
565568 return openml .utils ._delete_entity ("flow" , flow_id )
Original file line number Diff line number Diff line change @@ -1208,7 +1208,9 @@ def format_prediction(
12081208
12091209
12101210def delete_run (run_id : int ) -> bool :
1211- """Deletes a run from the OpenML server.
1211+ """Delete run with id `run_id` from the OpenML server.
1212+
1213+ You can only delete runs which you uploaded.
12121214
12131215 Parameters
12141216 ----------
@@ -1218,6 +1220,6 @@ def delete_run(run_id: int) -> bool:
12181220 Returns
12191221 -------
12201222 bool
1221- True if the deletion was successful. False otherwise
1223+ True if the deletion was successful. False otherwise.
12221224 """
12231225 return openml .utils ._delete_entity ("run" , run_id )
Original file line number Diff line number Diff line change @@ -548,7 +548,10 @@ def create_task(
548548
549549
550550def delete_task (task_id : int ) -> bool :
551- """Deletes a task from the OpenML server.
551+ """Delete task with id `task_id` from the OpenML server.
552+
553+ You can only delete tasks which you created and have
554+ no runs associated with them.
552555
553556 Parameters
554557 ----------
@@ -558,6 +561,6 @@ def delete_task(task_id: int) -> bool:
558561 Returns
559562 -------
560563 bool
561- True if the deletion was successful. False otherwise
564+ True if the deletion was successful. False otherwise.
562565 """
563566 return openml .utils ._delete_entity ("task" , task_id )
You can’t perform that action at this time.
0 commit comments