

<a id="confluent-flink-artifact-delete"></a>

# confluent flink artifact delete

## Description

### Cloud

Delete one or more Flink UDF artifacts.

```none
confluent flink artifact delete <id-1> [id-2] ... [id-n] [flags]
```

### On-Premises

Delete one or more Flink artifacts in Confluent Platform, including all of their versions.

```none
confluent flink artifact delete <name-1> [name-2] ... [name-n] [flags]
```

## Flags

### Cloud

```none
--cloud string         REQUIRED: Specify the cloud provider as "aws", "azure", or "gcp".
--region string        REQUIRED: Cloud region for Flink (use "confluent flink region list" to see all).
--environment string   Environment ID.
--force                Skip the deletion confirmation prompt.
--context string       CLI context name.
```

### On-Premises

```none
--environment string                  REQUIRED: Name of the Flink environment.
--url string                          Base URL of the Confluent Manager for Apache Flink (CMF). Environment variable "CONFLUENT_CMF_URL" may be set in place of this flag.
--client-key-path string              Path to client private key for mTLS authentication. Environment variable "CONFLUENT_CMF_CLIENT_KEY_PATH" may be set in place of this flag.
--client-cert-path string             Path to client cert to be verified by Confluent Manager for Apache Flink. Include for mTLS authentication. Environment variable "CONFLUENT_CMF_CLIENT_CERT_PATH" may be set in place of this flag.
--certificate-authority-path string   Path to a PEM-encoded Certificate Authority to verify the Confluent Manager for Apache Flink connection. Environment variable "CONFLUENT_CMF_CERTIFICATE_AUTHORITY_PATH" may be set in place of this flag.
--force                               Skip the deletion confirmation prompt.
```

## Global Flags

```none
-h, --help            Show help for this command.
    --unsafe-trace    Equivalent to -vvvv, but also log HTTP requests and responses which might contain plaintext secrets.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, and -vvvv for trace).
```

## Examples

### Cloud

Delete Flink UDF artifact.

```none
confluent flink artifact delete --cloud aws --region us-west-2 --environment env-123456 cfa-123456
```

### On-Premises

No examples.

## See Also

* [confluent flink artifact](index.md#confluent-flink-artifact) - Manage Flink UDF artifacts.
