private void remove ( String directoryName ) { if ( ( directoryName == null ) || ( conn == null ) ) return ; String key = S3Util . sanitize ( directoryName ) + "/" + S3Util . sanitize ( DC_FILE_NAME ) ; try { Map headers = new TreeMap ( ) ; headers . put ( "Content-Type" , Arrays . asList ( "text/plain" ) ) ; if ( usingPreSignedUrls ( ) ) { conn . delete ( pre_signed_delete_url ) . connection . getResponseMessage ( ) ; } else { conn . delete ( location , key , headers ) . connection . getResponseMessage ( ) ; } } catch ( Exception e ) { ROOT_LOGGER . cannotRemoveS3File ( e ) ; } }
Remove the S3 file that contains the domain controller data .