# StackDeleteByName

> Resource StackDeleteByName in pulumi-portainer.

<!-- Generated from the pulumi-portainer SDK. -->

Resource StackDeleteByName in pulumi-portainer.

Pulumi type: `portainer:index/stackDeleteByName:StackDeleteByName`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as portainer from "pulumi-portainer"

const resource = new portainer.StackDeleteByName("stackDeleteByName", {
  endpointId: 0,
})
```

## Arguments

| Property              | Type      | Required | Description                                                                                                                               |
| --------------------- | --------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `endpointId`          | `number`  | yes      | Identifier of the environment the stack was deployed to.                                                                                  |
| `external`            | `boolean` | no       | Whether the stack was created outside Portainer. Set it to true to remove a stack Portainer only discovered, rather than one it deployed. |
| `name`                | `string`  | no       | Name of the Kubernetes stack to remove. Every stack with this name in the target environment is removed.                                  |
| `stackDeleteByNameId` | `string`  | no       |                                                                                                                                           |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property              | Type      | Computed | Description                                                                                                                               |
| --------------------- | --------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `endpointId`          | `number`  | no       | Identifier of the environment the stack was deployed to.                                                                                  |
| `external`            | `boolean` | no       | Whether the stack was created outside Portainer. Set it to true to remove a stack Portainer only discovered, rather than one it deployed. |
| `name`                | `string`  | no       | Name of the Kubernetes stack to remove. Every stack with this name in the target environment is removed.                                  |
| `stackDeleteByNameId` | `string`  | no       |                                                                                                                                           |
