code: protected boolean undeployApk( File apkFile ) throws MojoExecutionException, MojoFailureException
      {
          final String packageName;
          packageName = extractPackageNameFromApk( apkFile );
          return undeployApk( packageName );
      }
docs: Undeploys an apk from a connected emulator or usb device. Also deletes the application's data and cache
  directories on the device.
  
  @param apkFile the file to undeploy
  @return <code>true</code> if successfully undeployed, <code>false</code> otherwise.