I have an already running enterprise application which stores a lot of documents inside the documents folders. I wish to disable the iCloud backup of all these documents and
You can put kCFURLIsExcludedFromBackupKey
(or NSURLIsExcludedFromBackupKey
) to the entire Documents directory just like you would for a single file. However, if you don't want any of the files backed up, you may want to rethink where they should go. The Documents directory is for user data only. If files are stored on your own servers, they should probably go in Caches
because they can be downloaded again easily. If the files are only needed for a short period of time, they should go in tmp/
.
This is Apple's documentation about where to put your app's files.