aspire secret delete command

Name

aspire secret delete - Delete a secret.

Synopsis

aspire secret delete  [options]

Description

The aspire secret delete command deletes a user secret from the secrets store for an Aspire AppHost.

The command returns the following exit codes:

  • 0—The command succeeded.
  • 3—Failed to find the AppHost project.
  • 4—The specified secret key was not found.

Arguments

The following arguments are available:

  • key

    The secret key to delete.

Options

The following options are available:

  • --apphost <apphost>

    The path to the Aspire AppHost project file.

            • Examples

  • Delete a secret:

    aspire secret delete Parameters:postgres-password
    
  • Delete a secret for a specific AppHost:

    aspire secret delete Parameters:rabbitmq-password --apphost ./src/MyApp.AppHost/MyApp.AppHost.csproj