[SOLVED] Reset (remove) blocks and blocks_layout values

That's the code I use when I create demo content. It sets the default generic block that allows you to add more blocks

from uuid import uuid4

uuid = str(uuid4())
item.blocks = {uuid: {'@type': 'slate'}}
item.blocks_layout = {'items': [uuid]}
1 Like