func (r *fileRepo) DeleteBox(addr hash.Hash, box int) error {
	if box <= MaxMandatoryBoxID {
		return errCantDeleteMandatoryBox
	}

	fullPath := r.getPath(addr, getBoxAsString(box))

	err := r.fs.RemoveAll(fullPath)
	if err != nil {
		return errCannotDeleteBox
	}

	return err
}
// Delete a given mailbox in the account
Delete a given mailbox in the account
// Delete a given mailbox in the account
func (r *fileRepo) DeleteBox(addr hash.Hash, box int) error {
	if box <= MaxMandatoryBoxID {
		return errCantDeleteMandatoryBox
	}
	fullPath := r.getPath(addr, getBoxAsString(box))
	err := r.fs.RemoveAll(fullPath)
	if err != nil {
		return errCannotDeleteBox
	}
	return err
}
func ( r * fileRepo ) DeleteBox ( addr hash . Hash , box int ) error { if box <= MaxMandatoryBoxID { return errCantDeleteMandatoryBox } fullPath := r . getPath ( addr , getBoxAsString ( box ) ) err := r . fs . RemoveAll ( fullPath ) if err != nil { return errCannotDeleteBox } return err }
Delete a given mailbox in the account
Delete a given mailbox in the account