Lithu T.V
Lithu T.V

Reputation: 20021

File in documents Directory after deletion

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?

Upvotes: 0

Views: 938

Answers (2)

Meera
Meera

Reputation: 1031

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.

Upvotes: 0

Puneet Sharma
Puneet Sharma

Reputation: 9484

The sandbox of an application deletes automatically when you delete the app. It happens in both your device and in iOS simulator.

Upvotes: 2

Related Questions