RemoveObject() public method

Remove an object
public RemoveObject ( string bucketName, string objectName ) : void
bucketName string Name of bucket to remove
objectName string Name of object to remove
return void
コード例 #1
0
        static int Main(string[] args)
        {
            var client = new MinioClient("https://s3.amazonaws.com", "ACCESSKEY", "SECRETKEY");

            client.RemoveObject("bucket");

            return 0;
        }
コード例 #2
0
ファイル: RemoveObject.cs プロジェクト: minio/minio-dotnet
 static int Main()
 {
     /// Note: s3 AccessKey and SecretKey needs to be added in App.config file
     /// See instructions in README.md on running examples for more information.
     var client = new MinioClient("s3.amazonaws.com", ConfigurationManager.AppSettings["s3AccessKey"],
                                  ConfigurationManager.AppSettings["s3SecretKey"]);
     client.RemoveObject("my-bucketname", "my-objectname");
     return 0;
 }