deleting files and folders in C:\

Login to reply to this topic.
Wed, 2008-04-30 07:55
Joined: 2008-03-18
Forum posts: 32

Hi,

Could anyone help me to delete all the files in C:\ on the device?

Thanks in advance,

Tejaswini


NEWBIE OF SYMBIAN


Wed, 2008-04-30 09:01
Joined: 2005-11-20
Forum posts: 1058
Re: deleting files and folders in C:\

Still searching for ways to "wipe" a mobile? Smiling

I don't see how that could ever work. First problem, you won't have the necessary capabilities to even switch into some folders, much less the necessary rights to delete them.

Second, I think that some files on C:\ are open and in use as long as the OS runs, and it won't allow you to delete such open files, for obvious reasons.


René Brunner

Wed, 2008-04-30 09:12
Joined: 2005-08-04
Forum posts: 128
Re: deleting files and folders in C:\

hi,

There is a class called RFs. It has a function called Delete() and RmDir(). You can use these functions to delete file and directory.

Sunny

Wed, 2008-04-30 12:40
Joined: 2004-11-29
Forum posts: 1134
Re: deleting files and folders in C:\

If you delete "all files in c:\" then your phone probably will not boot anymore.

luckily though, the sensitive ones containing settings and such are secured with capabilities you wont get unless you have device manufacturer permission.

And, as noted, many files containing sensitive information (like phone book, messaging, etc) will be locked by programs having them opened, that will prevent you from deleting them even if you have all the capabilities there is.

Also, note that just deleting the file is not enough to get rid of the information it contains, someone with the right tools can easily pick the phone apart and dump the flash memory and read deleted files, unless you make sure to really _wipe_ them. (that is, overwriting it)

And that is also possible if you just do the normal factory reset of the phone.

I'm not saying you should give up on the idea, but I think you are in for _a_lot_ more work then you thought it would be...
You will _not_ be able to find just some simple api to call to implement that wipeing functionality, it will need a lot of studying of the system, and be very hard to really get secure and not just some vodoo without any real security enhancement.

Wed, 2008-04-30 15:29
Joined: 2008-03-12
Forum posts: 30
Re: deleting files and folders in C:\

Why do you say "If you delete "all files in c:\" then your phone probably will not boot anymore"
It should be safe to delete like this. At least I've tried and was fine.
What user must not delete she's not able to delete.
To have read/write access to c:\ applications needs no capabilities

Fri, 2008-05-02 05:38
Joined: 2008-03-18
Forum posts: 32
Re: deleting files and folders in C:\

Hi Genesis,

Could you please let me know how you were able to delete all files and folders in C:\?

Thanks in advance,
Tejaswini


NEWBIE OF SYMBIAN

Fri, 2008-05-02 09:25
Joined: 2004-11-29
Forum posts: 1134
Re: deleting files and folders in C:\


Why do you say "If you delete "all files in c:\" then your phone probably will not boot anymore"
It should be safe to delete like this. At least I've tried and was fine.
What user must not delete she's not able to delete.
To have read/write access to c:\ applications needs no capabilities

Maybe you should read more then just the first line of my post.

Fri, 2008-05-02 09:37
Joined: 2008-03-18
Forum posts: 32
Re: deleting files and folders in C:\

Hi,
Assuming we have all the capabilities, can we achieve wiping of the phone? Here Wipe means : removing all user installed apps and user data [ nothing of OS related data]...

Regards
Tej


NEWBIE OF SYMBIAN

  • Login to reply to this topic.