public ServiceCall < Void > deleteExpansions ( DeleteExpansionsOptions deleteExpansionsOptions ) { Validator . notNull ( deleteExpansionsOptions , "deleteExpansionsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "collections" , "expansions" } ; String [ ] pathParameters = { deleteExpansionsOptions . environmentId ( ) , deleteExpansionsOptions . collectionId ( ) } ; RequestBuilder builder = RequestBuilder . delete ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments , pathParameters ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "discovery" , "v1" , "deleteExpansions" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getVoid ( ) ) ; }
Delete the expansion list .