<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_case(self, case):
 """Delete case from the database Delete a case from the database Args: case (dict):
 A case dictionary """

        mongo_case = self.case(case)

        if not mongo_case:
            raise CaseError("Tried to delete case {0} but could not find case".format(
                case.get('case_id')
            ))
        LOG.info("Removing case {0} from database".format(
            mongo_case.get('case_id')
        ))
        self.db.case.delete_one({'_id': mongo_case['_id']})

        return