We have a use case where our clients are streaming data from a device over bluetooth to a mobile phone where the data is being saved as attachments in couchbase lite. Then, once the recording is finished, the attachment blob is sent to a file storage server on the cloud. Once that is complete, the file should be deleted on the mobile phone in order to save space. However, we still require the attachment metadata in the database in case the user wants to look at historical recordings, in which case we will pull it from the server as required, while referencing the metadata in the database.
My question is: is there a way of deleting attachment “files” but keeping the metadata, without the system breaking?