<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_bundle(self, href=None):
 """ Delete a bundle. :param href: the relative href to the bundle. :type href: string, may not be None :return: nothing :raises APIException: If the response code is not 204. """


        # Argument error checking.
        assert href is not None

        raw_result = self.delete(href)

        if raw_result.status != 204:
            raise APIException(raw_result.status, raw_result.json)