'{username}', 'password' => '{password}', )); // 2. Obtain an Orchestration service object from the client. $orchestrationService = $client->orchestrationService(null, '{region}'); // 3. Get stack. $stack = $orchestrationService->getStack('{stackName}'); // 4. Abandon stack. /** @var $abandonStackData string **/ $abandonStackData = $stack->abandon(); file_put_contents(__DIR__ . '/sample_adopt_stack_data.json', $abandonStackData);