pub fn clear_attribute<T: Config<I>, I: 'static>(
    collection: T::CollectionId,
    maybe_item: Option<T::ItemId>,
    key: BoundedVec<u8, T::KeyLimit>
)
Expand description

Clear an attribute for a collection or item.

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

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.
  • key: The key of the attribute.

Emits AttributeCleared.

Weight: O(1)

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::clear_attribute.