customerio.go
func (c *CustomerIO) DeleteDevice(customerID string, deviceID string) error {
	status, responseBody, err := c.request("DELETE", c.deleteDeviceURL(customerID, deviceID), []byte{})

	if err != nil {
		return err
	} else if status != 200 {
		return &CustomerIOError{status, c.deleteDeviceURL(customerID, deviceID), responseBody}
	}

	return nil
}
func (c *CustomerIO) DeleteDevice(customerID string, deviceID string) error {
	status, responseBody, err := c.request("DELETE", c.deleteDeviceURL(customerID, deviceID), []byte{})

	if err != nil {
		return err
	} else if status != 200 {
		return &CustomerIOError{status, c.deleteDeviceURL(customerID, deviceID), responseBody}
	}

	return nil
}
func ( c * CustomerIO ) DeleteDevice ( customerID string , deviceID string ) error { status , responseBody , err := c . request ( " " , c . deleteDeviceURL ( customerID , deviceID ) , [ ] byte { } ) if err != nil { return err } else if status != 200 { return & CustomerIOError { status , c . deleteDeviceURL ( customerID , deviceID ) , responseBody } } return nil }
// DeleteDevice deletes a device for a customer
DeleteDevice deletes a device for a customer