Updated device delete to conform with new APIs. Flag can be passed to
force deletion of device data.