NBTTagCompound playerData = ... // get player's NBTTagCompound object playerData.removeTag("Inventory"); // remove inventory tag
NBTTagCompound gameObjectData = ... // get game object's NBTTagCompound object gameObjectData.removeTag("Score"); // remove score tagThe package library for this method is net.minecraft.nbt, which is a package within Minecraft's game engine code.