Removing AutoGraph¶
removed = sales.autograph.undeploy()
One call stops and removes the project’s AutoGraph service and returns the
service record as the platform last described it. There is nothing to pass:
the project has one AutoGraph service, and undeploy reloads the project to
find it.
Parameters¶
None.
Return value¶
A ServiceInfo for the removed service.
The handle is reloaded after the call, so sales.autograph.is_deployed is
False and sales.autograph.service_id is None.
Errors¶
AutoGraphNotDeployedErrorThe project has no AutoGraph service. Nothing was sent.
ProjectNotFoundErrorThe project no longer exists on the platform.
ServiceNotFoundErrorThe project record still names a service, but the platform no longer knows it. Call
sales.refresh()and checkis_deployedagain.ServiceNotDeletableErrorThe platform will not remove this service because another entity manages it.
Any other failure surfaces as one of the general SDK exceptions described in Errors.
Example¶
from arango_ai_sdk.exceptions import AutoGraphNotDeployedError
sales = client.project.get(project_name="sales")
try:
sales.autograph.undeploy()
except AutoGraphNotDeployedError:
print("Nothing to remove.")
else:
print("AutoGraph removed; redeploy with sales.autograph.deploy(...)")