<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_insight(self, project_key, insight_id):
 """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 -------- """

        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)