public function delete($user, $repo, $milestoneId)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/milestones/' . (int) $milestoneId;

		// Send the request.
		$response = $this->client->delete($this->fetchUrl($path));

		// Validate the response code.
		if ($response->code != 204)
		{
			// Decode the error response and throw an exception.
			$error = json_decode($response->body);
			throw new \DomainException($error->message, $response->code);
		}
	}
public function delete($user, $repo, $milestoneId)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/milestones/' . (int) $milestoneId;

		// Send the request.
		$response = $this->client->delete($this->fetchUrl($path));

		// Validate the response code.
		if ($response->code != 204)
		{
			// Decode the error response and throw an exception.
			$error = json_decode($response->body);
			throw new \DomainException($error->message, $response->code);
		}
	}
public function delete ( $ user , $ repo , $ milestoneId ) { // Build the request path. $ path = '/repos/' . $ user . '/' . $ repo . '/milestones/' . ( int ) $ milestoneId ; // Send the request. $ response = $ this -> client -> delete ( $ this -> fetchUrl ( $ path ) ) ; // Validate the response code. if ( $ response -> code != 204 ) { // Decode the error response and throw an exception. $ error = json_decode ( $ response -> body ) ; throw new \ DomainException ( $ error -> message , $ response -> code ) ; } }
Method to delete a milestone.

@param   string   $user         The name of the owner of the GitHub repository.
@param   string   $repo         The name of the GitHub repository.
@param   integer  $milestoneId  The id of the milestone to delete.

@throws \DomainException
@return  void

@since   1.0
Method to delete a milestone .