destroy() and getAppDrive() function