def disable(cls, path): """ Remove a drozer Module Repository from the collection, but leave the file system intact. """ if cls.is_repo(path): Configuration.delete('repositories', path) else: raise UnknownRepository(path)
def delete(cls, url): """ Removes a drozer remote, with the specified URL. """ if cls.get(url) != None: Configuration.delete('remotes', url) return True else: raise UnknownRemote(url)