It is not possible to empty the contract of a basket. See 'Bug 39711: (bugfix) Allow to clear basket's contract' for a fix for main