public void removeObject ( String bucketName , String objectName ) throws InvalidBucketNameException , NoSuchAlgorithmException , InsufficientDataException , IOException , InvalidKeyException , NoResponseException , XmlPullParserException , ErrorResponseException , InternalException , InvalidArgumentException { if ( ( bucketName == null ) || ( bucketName . isEmpty ( ) ) ) { throw new InvalidArgumentException ( "bucket name cannot be empty" ) ; } if ( ( objectName == null ) || ( objectName . isEmpty ( ) ) ) { throw new InvalidArgumentException ( "object name cannot be empty" ) ; } executeDelete ( bucketName , objectName , null ) ; }
Removes an object from a bucket .