If you wish to empty a container, you can use the empty command:
> empty sack > empty barrel
See also: Get, Pour, Herblores