code: def delete_insight(self, project_key, insight_id):
          
          projectOwner, projectId = parse_dataset_key(project_key)
          try:
              self._insights_api.delete_insight(projectOwner,
                                                projectId,
                                                insight_id)
          except _swagger.rest.ApiException as e:
              raise RestApiError(cause=e)
docs: Delete an existing insight.
  
          :params project_key: Project identifier, in the form of
          projectOwner/projectId
          :type project_key: str
          :params insight_id: Insight unique id
          :type insight_id: str
          :raises RestApiException: If a server error occurs
  
          Examples
          --------
          >>> import datadotworld as dw
          >>> api_client = dw.api_client()
          >>> del_insight = api_client.delete_insight(
          ...     'username/project', 'insightid')  # doctest: +SKIP