clear_attribute: TxDescriptor<{
    collection: number;
    key: Binary;
    maybe_item?: number;
    namespace: Enum<{
        Account: SS58String;
        CollectionOwner: undefined;
        ItemOwner: undefined;
        Pallet: undefined;
    }>;
}>

Clear an attribute for a collection or item.

Origin must be either ForceOrigin or Signed and the sender should be the Owner of the attribute.

Any deposit is freed for the collection's owner.

  • collection: The identifier of the collection whose item's metadata to clear.
  • maybe_item: The identifier of the item whose metadata to clear.
  • namespace: Attribute's namespace.
  • key: The key of the attribute.

Emits AttributeCleared.

Weight: O(1)