<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(self, entry):
 """Remove entries from the blacklist. The method removes the given 'entry' from the blacklist. :param entry: entry to remove from the blacklist """

        if not entry:
            return CMD_SUCCESS

        try:
            api.delete_from_matching_blacklist(self.db, entry)
        except NotFoundError as e:
            self.error(str(e))
            return e.code

        return CMD_SUCCESS