A Minecraft data pack provides util functions.
Use the command /function cu:teardown and it will:
- Resets setup condition
- Remove scoreboard objectives
- Remove data storages
- Clear schedules
- Disable the data pack
Blocks, entities, loaded chunks, and entity tags can only be removed manually.
IMPORTENT
Required extra steps to remove the world generation of custom dimensions:
(before Minecraft 26.1)
- Ensure the game or the server is stopped.
- Locates the file
level.datin the world save. - Create a backup of
level.datin case. - Open
level.datby using tools like NBTExplorer. - Remove the entries with the prefix
cu:under the pathData.WorldGenSettings.dimensions. - Save the changes.