Force Remove Namespace

Force Remove Namespace user flow testing

  1. Ensure that namespace has been created in the chain storage.

To view the storage of namespace, follow the steps below.

  • Go to the Developer tab in menu bar.

  • Select Chain State from Developer menu list.

  • Select a pallet buckets from the dropdown menu.

  • Select the namespces function using the dropdown input field.

  • Make sure to select 1 as the namespace ID in the input field.

  • Click the ⊕ plus button on the right side.

  • You will see 'NamespaceMetadata';

  1. Open the Developer tab, then click Sudo.

  1. Select the buckets pallet from the dropdown input field.

  1. Select the 'force remove namespace' extrinsic function.

  1. Select namespace id as shown below.

  1. Make sure to delete managers and buckets before removing namespace if it has some.

Remove ManagerForce Remove Bucket
  1. Click submit sudo transaction

  1. On success, it emits the NamespaceDeleted event.

  1. To view the storage changes of a namespace removed, follow the steps below.

  • Go to the Developer tab in menu bar.

  • Select Chain State from Developer menu list.

  • Select the buckets pallet from the state query dropdown input field.

  • Select the namespace from the dropdown input field.

  • Choose namespace id and then click the ⊕ plus button on the right side.

You will see 'None', which means namespace has been removed

Last updated