# Clear Companies From Portfolio This endpoint allows for companies to be deleted from the specified portfolio. Endpoint: PATCH /monitoring/portfolios/{portfolioId}/companies/clear Version: 1.10.9 Security: bearerToken ## Query parameters: - `clearAll` (boolean) When ClearAll query parameter is False,Companies List needs to be passed. When ClearAll query parameter is True, Companies List must be empty. All companies will be deleted ## Path parameters: - `portfolioId` (number, required) The unique identifier of the portfolio you want to delete companies from, obtained from . ## Request fields (application/json): - `companies` (array) ## Response 200 fields (application/json): - `correlationId` (string) A unique ID assigned to this request. Example: "23921650-c073-11ea-860f-06bc8182190e" - `message` (string) A message stating if your request was successful. Example: "Companies deleted from portfolio" ## Response 400 fields (application/json): - `correlationId` (string) A unique ID assigned to this request. - `message` (string) - `details` (string) Provides further information on why the request was rejected ## Response 401 fields (application/json): - `error` (string) ## Response 403 fields (application/json): - `message` (string) Example: "Access forbidden" ## Response 404 fields (application/json): - `correlationId` (string) A unique ID assigned to this request. - `message` (string) - `details` (string) Provides further information on why the request was rejected