The Clear Command

The /clear command is a command normally used when playing survival-type games in a creative world.

Overview
The /clear command clears a certain amount of items from your inventory.

Syntax
/clear [item] [item data value] [count]

Explanation
The player value is the player you want cleared. If you stop there, the player will be cleared of all their items. The item value is the item you want to be cleared. The item data value value is the data value of the item. If you put it at -1, it will clear all items under the item value. The count value is the amount of items you want to be cleared. If you put it at -1, it will clear everything.

Trivia

 * Has the same effect as shift-clicking the x in the bottom-right corner of the creative inventory.