code: def delete(self, name):
          
          if self.service.splunk_version >= (5,):
              Collection.delete(self, name)
          else:
              raise IllegalOperationException("Deleting indexes via the REST API is "
                                              "not supported before Splunk version 5.")
docs: Deletes a given index.
  
          **Note**: This method is only supported in Splunk 5.0 and later.
  
          :param name: The name of the index to delete.
          :type name: ``string``