public void deleteDeployKey ( Object projectIdOrPath , Integer keyId ) throws GitLabApiException { if ( keyId == null ) { throw new RuntimeException ( "keyId cannot be null" ) ; } delete ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "deploy_keys" , keyId ) ; }
Removes a deploy key from the project . If the deploy key is used only for this project it will be deleted from the system .