public void Delete() { if (!string.IsNullOrEmpty(Key)) throw new ArgumentException("S3 object is empty."); cachedContent = null; Repository.Delete(Bucket, Key).Wait(); Length = 0; Key = null; }