Skip to content

Commit f45727c

Browse files
authored
Merge pull request #33 from scaleapi/sasha/delete_models
Add support for deleting models
2 parents 30c4066 + 4beb724 commit f45727c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

nucleus/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,24 @@ def delete_slice(self, slice_id: str) -> dict:
838838
)
839839
return response
840840

841+
def delete_model(self, model_id: str) -> dict:
842+
"""
843+
This endpoint deletes the specified model, along with all
844+
associated model_runs.
845+
846+
:param
847+
model_id: id of the model_run to delete.
848+
849+
:return:
850+
{}
851+
"""
852+
response = self._make_request(
853+
{},
854+
f"model/{model_id}",
855+
requests_command=requests.delete,
856+
)
857+
return response
858+
841859
def _make_grequest(
842860
self,
843861
payload: dict,

0 commit comments

Comments
 (0)