code: def delete_space(self, space_key, callback=None):
          
          return self._service_delete_request("rest/api/space/{key}".format(key=space_key),
                                              callback=callback)
docs: Deletes a Space.
  
          The space is deleted in a long running task, so the space cannot be considered deleted when this method returns.
          Clients can follow the status link in the response and poll it until the task completes.
  
          :param space_key (string): The key of the space to delete.
          :param callback: OPTIONAL: The callback to execute on the resulting data, before the method returns.
                           Default: None (no callback, raw data returned).
          :return: A pointer to the longpoll task if successful, or the results of the callback.
                   Will raise requests.HTTPError on bad input, potentially.