GoogleCloudSamples.QuickStart.DeleteObject C# (CSharp) Method

DeleteObject() private method

private DeleteObject ( string bucketName, IEnumerable objectNames ) : void
bucketName string
objectNames IEnumerable
return void
        private void DeleteObject(string bucketName, IEnumerable<string> objectNames)
        {
            var storage = StorageClient.Create();
            foreach (string objectName in objectNames)
            {
                storage.DeleteObject(bucketName, objectName);
                Console.WriteLine($"Deleted {objectName}.");
            }
        }