<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def flush_events(self):
 """Flush events from the cloud node."""

        response = self._send_data('DELETE', 'admin', 'flush-events', {})

        if response['success']:
            msg = "Events flushed"
        else:
            msg = "Flushing of events failed"
        output = {'message': msg}

        return output