Skip to content

Commit 7a8a0ed

Browse files
author
Andrey Cheptsov
committed
Pass delete_permanently when deleting Verda instances
1 parent 129e214 commit 7a8a0ed

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/dstack/_internal/core/backends/verda

src/dstack/_internal/core/backends/verda/compute.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ def terminate_instance(
168168
self, instance_id: str, region: str, backend_data: Optional[str] = None
169169
):
170170
try:
171-
self.client.instances.action(id_list=[instance_id], action="delete")
171+
self.client.instances.action(
172+
id_list=[instance_id],
173+
action="delete",
174+
delete_permanently=True,
175+
)
172176
except APIException as e:
173177
if e.message in [
174178
"Invalid instance id",

0 commit comments

Comments
 (0)