Forum Discussion

Elijah's avatar
Elijah
Level 2.0: Eclair
10 months ago

Deleting and Erasing Device Using the AMA API

When I use the Android Management API to delete a device from an enterprise, the device is deleted but the physical device is not wiped, I can still see that the Physical device is connected to the enterprise from the device it self. The device is in fully managed mood. 

I want to ask if this is the normal behavior, because I'm expecting that when I delete a device from an enterprise with  AMA API, the physical device should be cleared and factory resetted?

5 Replies

  • jasonbayton's avatar
    jasonbayton
    Level 4.1: Jelly Bean
    10 months ago

    What you're expecting is exactly how it should work.

     

    Is the device network-restricted? Is it active and in use? When you run a devices.list do you see the device identifiers referenced in other records?

    • Elijah's avatar
      Elijah
      Level 2.0: Eclair
      10 months ago

      I don't see the device in the devices.list, but from the device settings app, in Accounts, the work account still shows up. Immediately after issuing the command, I don't notice any thing or event in the device/phone.

    • Elijah's avatar
      Elijah
      Level 2.0: Eclair
      10 months ago

      Thank you very much jasonbayton , I tried deleting the device again and it worked as expected

      • jasonbayton's avatar
        jasonbayton
        Level 4.1: Jelly Bean
        10 months ago

        Did AMAPI respond the first time with anything other than 200? It'll have said at that point if something happened. Could have maybe timed out the first time also.. hmm

         

        Maybe poll operations and such for clues.