Skip to content

Commit 9922eb2

Browse files
authored
docs: adds note to delete endpoint sample (#2060)
* docs: adds note to delete endpoint sample * linter
1 parent 3e1b206 commit 9922eb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/snippets/endpoint_service/delete_endpoint_sample.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def delete_endpoint_sample(
3131
name = client.endpoint_path(
3232
project=project, location=location, endpoint=endpoint_id
3333
)
34+
# NOTE: Be sure to undeploy any models served from the endpoint before
35+
# attempting to delete it.
3436
response = client.delete_endpoint(name=name)
3537
print("Long running operation:", response.operation.name)
3638
delete_endpoint_response = response.result(timeout=timeout)

0 commit comments

Comments
 (0)