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
def delete_case ( self , case ) : 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
Delete case from the database

            Delete a case from the database

            Args:
                case (dict): A case dictionary