def METHOD_NAME(self, carray):
    """Delete carray SWIG C pointer, return carray as None"""
    logger.debug("Enter delete carray values method for %d", id(self))
    if carray is None:
        return None
    if "int" in str(carray):
        _cxtgeo.delete_intarray(carray)
        carray = None
    elif "float" in str(carray):
        _cxtgeo.delete_floatarray(carray)
        carray = None
    elif "double" in str(carray):
        _cxtgeo.delete_doublearray(carray)
        carray = None
    else:
        raise RuntimeError("BUG?")
    return carray