def METHOD_NAME(self, key: str, *args, **kwargs) -> bytes:
    """
    Retrieve and remove a result from the data directory.
    Raises
    ------
    FileNotFoundError when backing file does not exist
    Returns
    -------
    message
    """
    try:
        payload = self[key]
        self.discard(key)
        return payload
    except FileNotFoundError:
        if args:
            return args[0]
        elif "default" in kwargs:
            return kwargs["default"]
        raise