
It takes a user-defined maximum number of shards (default 28), and will delete any excess shards. It was made to allow liberal use of the 15% mana return while farming/questing without having to manually delete tons of extra Soul Shards.
To change the maximum number of shards allowed:
/shard [number]