When using /clear command with for example specified item-amount of 10 diamonds (/clear @p Diamond 0 10) and you have got only for example 8 diamonds in inventory the game will say could not remove items (thats good, it should not work, please leave this so), but the Problem is that the diamonds are now ghost-items and will disapear when you want to take them.
Cleaning up old tickets: This ticket has not been updated recently (~1 year+) so is being closed as Cannot Reproduce. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki