delete method
Delete a file from iCloud container directory, whether it is been downloaded or not
containerId
is the iCloud Container Id.
relativePath
is the relative path of the file on iCloud, such as file1
or folder/file2
PlatformException with code PlatformExceptionCode.fileNotFound will be thrown if the file does not exist
Implementation
@override
Future<void> delete({
required containerId,
required String relativePath,
}) async {
await methodChannel.invokeMethod('delete', {
'containerId': containerId,
'cloudFileName': relativePath,
});
}