<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __delete_action(self, revision):
 """ Handle a delete action to a partiular master id via the revision. :param dict revision: :return: """

        delete_response = yield self.collection.delete(revision.get("master_id"))
        if delete_response.get("n") == 0:
            raise DocumentRevisionDeleteFailed()