There is no Python syntax that'll let you define exclusive-or arguments, no. You'd have to explicitly raise an exception is both or none are specified:
if (title and pageid) or not (title or pageid):
raise ValueError('Can only delete by title OR pageid')