Changed location where devices are cleaned in getDevices API