title: Google Storage delete Object in c#
body: <p>I am using Google Storage API v1 in my C# Web App.</p>
  
  <p>Deleting files doesn't work, nothing happens, I get no error or exception.</p>
  
  <pre><code> Google.Apis.Storage.v1.Data.Object fileobj = new Google.Apis.Storage.v1.Data.Object()
         {
              Name = path  // "folder 1/somefile.txt"
         };
  
  var res =  service.Objects.Delete(bucketName, fileobj.Name).Execute();
  </code></pre>
  
  <p>Writing files works:</p>
  
  <pre><code>Google.Apis.Storage.v1.Data.Object fileobj = new Google.Apis.Storage.v1.Data.Object()
          {
              Name = path // "folder 1/somefile.txt"  
          };
  
          var localPath = HttpContext.Current.Server.MapPath("~/" + path);
  
          using (var streamOut = new FileStream(localPath, FileMode.Open))
          {
              var res = await service.Objects.Insert(fileobj, bucketName, streamOut, "binary/octet-stream").UploadAsync(); // content-type=binary/octet-stream ist default
          }
  </code></pre>