public Integer delete ( CMAAsset asset ) { final String assetId = getResourceIdOrThrow ( asset , "asset" ) ; final String spaceId = getSpaceIdOrThrow ( asset , "asset" ) ; final String environmentId = asset . getEnvironmentId ( ) ; return service . delete ( spaceId , environmentId , assetId ) . blockingFirst ( ) . code ( ) ; }
Delete an Asset .