def rm_attr(self, obj, attr):
        """
        Remove an attribute from the object, and report back.
        """
        if obj.attributes.has(attr):
            val = obj.attributes.has(attr)
            obj.attributes.remove(attr)
            return "\nDeleted attribute '%s' (= %s) from %s." % (attr, val, obj.name)
        else:
            return "\n%s has no attribute '%s'." % (obj.name, attr)
dataset/ETHPy150Open evennia/evennia/evennia/commands/default/building.py/CmdSetAttribute.rm_attr/original