CC-5888: Handle file deletion if the file is stored in the cloud