StoreSpan
Blocks

Archive a block

Retire a block you no longer need, find out why StoreSpan refuses to archive one, and bring an archived block back.

A block cannot be deleted. When you no longer need one, archive it. An archived block is not offered when you choose a block, and it does not show on your storefront. You can bring it back at any time.

Archive a block

  1. Open the block from Storefront › Blocks.
  2. Check the Used by panel under the form. It must list no injectable.
  3. Press Archive.

The page confirms with The block status was changed.

If StoreSpan refuses to archive

StoreSpan refuses while any injectable that is not archived still uses the block. This includes injectables that are paused, in draft or preview only, because any of them could go live later and would then show nothing.

The message that StoreSpan shows when it refuses to archive a block, naming the injectable that still uses it

The message names the injectables. For each one, do one of these, then archive the block:

The injectable uses the blockWhat to do
As its contentChoose another block, or Inline content. See Use a block in an injectable.
In a stackRemove the block from the stack. See Combine several blocks.
And you no longer need itArchive the injectable.

Bring a block back

  1. Open Storefront › Blocks and open the archived block.
  2. Press Re-activate.

The block is offered again when you choose a block. Injectables do not start using it again by themselves.

What an archived block looks like in a stack

The stack shows the block as Archived and leaves it out of the page. The rest of the stack still shows. See Combine several blocks.

Change a block to a script

StoreSpan refuses to change a block to the Script content type while a live injectable uses it. A script runs code on your storefront, and an injectable that runs code must be published with a check that you have reviewed the code. Changing the block would skip that check.

To make the change:

  1. Pause each injectable that uses the block. The message names them.
  2. Change the block's content type to Script and save.
  3. Publish the injectables again.

See Publish and status.

On this page