code: def delete_extension_by_id(self, extension_id, version=None):
          
          route_values = {}
          if extension_id is not None:
              route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str')
          query_parameters = {}
          if version is not None:
              query_parameters['version'] = self._serialize.query('version', version, 'str')
          self._send(http_method='DELETE',
                     location_id='a41192c8-9525-4b58-bc86-179fa549d80d',
                     version='5.0-preview.2',
                     route_values=route_values,
                     query_parameters=query_parameters)
docs: DeleteExtensionById.
          [Preview API]
          :param str extension_id:
          :param str version: