<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete(self, cartname):
 """ `cartname` - name of the cart to delete Delete a cart both from your local filesystem and the mongo database """

        cart = juicer.common.Cart.Cart(cart_name=cartname)
        cart.implode(self._defaults['start_in'])