import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
client.cloud.ssh_keys.delete(
ssh_key_id="36a7a97a-0672-4911-8f2b-92cd4e5b0d91",
project_id=1,
)
SSH Keys
Delete SSH key
DELETE
/
cloud
/
v1
/
ssh_keys
/
{project_id}
/
{ssh_key_id}
Python
Copy
Ask AI
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
client.cloud.ssh_keys.delete(
ssh_key_id="36a7a97a-0672-4911-8f2b-92cd4e5b0d91",
project_id=1,
)