code: public ApiResponse<ApiSuccessResponse> removeMediaWithHttpInfo(String mediatype, LogoutMediaData logoutMediaData) throws ApiException {
          com.squareup.okhttp.Call call = removeMediaValidateBeforeCall(mediatype, logoutMediaData, null, null);
          Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Log out of a media channel
  Log out the current agent on the specified media channels. You can make a [/media/{mediatype}/ready](/reference/workspace/Media/index.html#readyAgentState) or [/media/{mediatype}/not-ready](/reference/workspace/Media/index.html#notReadyAgentState) request to log in to the media channel again.
  @param mediatype The media channel. (required)
  @param logoutMediaData  (required)
  @return ApiResponse&lt;ApiSuccessResponse&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body