delete static method
Delete a file from the iCloud container.
Trailing slashes are allowed here because directory paths can include them in metadata and FileManager operations handle directories.
Implementation
static Future<void> delete({
required String containerId,
required String relativePath,
}) async {
if (!_validateRelativePath(relativePath)) {
throw InvalidArgumentException('invalid relativePath: $relativePath');
}
await ICloudStoragePlatform.instance.delete(
containerId: containerId,
relativePath: relativePath,
);
}