If your SD card is full of junk and you want to format it, this operation can be done directly from your phone:
- First you should unmount the memory card.:
- Tap on Menu > Applications > Settings > Storage > Unmount SD card
- Validate with the Ok button
- Once done tap on Format SD card > Erase everything.