Skip to content

Commit 5238117

Browse files
committed
Add missing delete method
1 parent 0fcc994 commit 5238117

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dataikuapi/dss/flow.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,12 @@ def get_graph(self):
391391
data = self.client._perform_json("GET", "/projects/%s/flow/zones/%s/graph" % (self.flow.project.project_key, self.id))
392392
return DSSProjectFlowGraph(self.flow, data)
393393

394+
def delete(self):
395+
"""
396+
Delete the zone, all items will be moved to the default zone
397+
"""
398+
return self.client._perform_empty("DELETE", "/projects/%s/flow/zones/%s" % (self.flow.project.project_key, self.id))
399+
394400

395401
class DSSFlowZoneSettings(object):
396402
"""The settings of a flow zone. Do not create this directly, use :meth:`DSSFlowZone.get_settings`"""

0 commit comments

Comments
 (0)