public void deleteHook ( Object projectIdOrPath , Integer hookId ) throws GitLabApiException { Response . Status expectedStatus = ( isApiVersion ( ApiVersion . V3 ) ? Response . Status . OK : Response . Status . NO_CONTENT ) ; delete ( expectedStatus , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "hooks" , hookId ) ; }
Deletes a hook from the project .