Skip to content

DELETE /wpcom/v2/sites/$wpcom_site/hosting/ssh-keys/$user_name/$name

Detach an SSH key from a site.

Resource Information

   
Method DELETE
URL https://public-api.wordpress.com/wpcom/v2/sites/$wpcom_site/hosting/ssh-keys/$user_name/$name
Requires authentication? Yes

Method Parameters

Parameter Type Required Description
wpcom_site string | integer Yes A domain or blog ID.
user_name string Yes Name the user for which we want to detach SSH key.
name string Yes Name of the SSH key we want to detach.

Response Example

					
						{
    "name": "default",
    "user_login": "username",
    "sha256": "SHA256:1YqqmA7gif1Clf0NTwp96IYMh2pM+sVUDbk2sssqkPs",
    "type": "ssh-rsa",
    "attached_at": "2024-06-05T18:49:35+00:00"
}					
				

Resource Errors

This endpoint does not return any errors.