I created an sqlite file[or any file] in documents directory in ios device.If i removed the app (delete) from the device this file stays or get removed?
Asked
Active
Viewed 613 times
0
-
PS: to see for myself i dont have a device with me right now – Lithu T.V Jun 04 '13 at 07:26
-
2if u remove your app. the it will be removed "_ – Jun 04 '13 at 07:28
-
this file delete automatically – kirti Chavda Jun 04 '13 at 07:28
2 Answers
2
The sandbox of an application deletes automatically when you delete the app. It happens in both your device and in iOS simulator.

Puneet Sharma
- 9,369
- 1
- 27
- 33
0
Documents directory allows you to store files and subdirectories your app creates or may need, for example a database.
Your application works in a sandbox environment. When you delete the application in simulator or device, the directory that was created by application is deleted and so do the files residing in it.
When you reset your simulator you can find the deleted files in the trash.

Meera
- 1,031
- 6
- 25