Skip to content

Commit 1b4c686

Browse files
committed
docs(aiplatform): adds note to deleteEndpoint
1 parent 4c27c3a commit 1b4c686

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ai-platform/snippets/delete-endpoint.js

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ async function main(endpointId, project, location = 'us-central1') {
4444
name: `projects/${project}/locations/${location}/endpoints/${endpointId}`,
4545
};
4646

47+
// NOTE: Be sure to undeploy any models deployed to the endpoint before
48+
// attempting to delete the endpoint.
49+
4750
// Delete endpoint request
4851
const [response] = await endpointServiceClient.deleteEndpoint(endpoint);
4952
console.log(`Long running operation : ${response.name}`);

0 commit comments

Comments
 (0)