github.com/axw/juju@v0.0.0-20161005053422-4bd6544d08d4/api/backups/remove.go (about)

     1  // Copyright 2014 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package backups
     5  
     6  import (
     7  	"github.com/juju/errors"
     8  
     9  	"github.com/juju/juju/apiserver/params"
    10  )
    11  
    12  func (c *Client) Remove(id string) error {
    13  	args := params.BackupsRemoveArgs{ID: id}
    14  	if err := c.facade.FacadeCall("Remove", args, nil); err != nil {
    15  		return errors.Trace(err)
    16  	}
    17  	return nil
    18  }