title: GCP AI Platform Vertex endpoint model undeploy : 404 The DeployedModel with ID `2367889687867` is missing
body: <p>I am trying to un-deploy model from an endpoint following <a href="https://cloud.google.com/python/docs/reference/aiplatform/latest/google.cloud.aiplatform.Endpoint#google_cloud_aiplatform_Endpoint_undeploy" rel="nofollow noreferrer">this documentation</a>.</p>
  <pre><code>Endpoint.undeploy(deployed_model_id=model_id)
  </code></pre>
  <p>I even tried <a href="https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints/undeployModel" rel="nofollow noreferrer">google api</a>. Same Issue with this as well.</p>
  <p>Getting 404 error</p>
  <blockquote>
  <p>The Deployed Model with ID <code>2367889687867</code> is missing.</p>
  </blockquote>
  <p><strong>INFO:</strong></p>
  <ol>
  <li>Both model and Endpoint are in same region.</li>
  <li>There is a single model deployed in the endpoint with <code>traffic_percentage=100</code>.</li>
  </ol>