How to remove file that is saved on the SDCard of the Emulator?

14,782

Solution 1

Option 1:

Go to Avd folder in

Windows XP

C:\Documents and Settings{current user}.android\avd{avd name}\

Vista/Win7

C:\Users{current user}.android\avd{avd name}\

Delete the sdcard.img file... when you run the emulator next time, it will create new sdcard

Option 2:

If you want to delete specific files from sdcard then

Open your command prompt and type

adb shell

cd \mnt\sdcard

rm {filename}

Solution 2

You can do this from DDMS. Ensure your emulator is running.

  1. Go to DDMS perspective in eclipse.
  2. In the Devices window select your emulator
  3. Then go to Window-->Show View-->FIle Explorer
  4. Open the sdcard folder and delete the files you want.
Share:
14,782
Shreyash Mahajan
Author by

Shreyash Mahajan

About Me https://about.me/sbm_mahajan Email [email protected] [email protected] Mobile +919825056129 Skype sbm_mahajan

Updated on June 04, 2022

Comments

  • Shreyash Mahajan
    Shreyash Mahajan about 2 years

    In my application I am going to store the file from assets to the SDCard. But now there is no more space in the emulator. So I want to delete that file.

    So how to delete that file from the Emulator?