Skip to content

Delete Repository

ecr_delete_repository R Documentation

Deletes a repository

Description

Deletes a repository. If the repository isn't empty, you must either delete the contents of the repository or use the force option to delete the repository and have Amazon ECR delete all of its contents on your behalf.

Usage

ecr_delete_repository(registryId, repositoryName, force)

Arguments

registryId

The Amazon Web Services account ID associated with the registry that contains the repository to delete. If you do not specify a registry, the default registry is assumed.

repositoryName

[required] The name of the repository to delete.

force

If true, deleting the repository force deletes the contents of the repository. If false, the repository must be empty before attempting to delete it.

Value

A list with the following syntax:

list(
  repository = list(
    repositoryArn = "string",
    registryId = "string",
    repositoryName = "string",
    repositoryUri = "string",
    createdAt = as.POSIXct(
      "2015-01-01"
    ),
    imageTagMutability = "MUTABLE"|"IMMUTABLE",
    imageScanningConfiguration = list(
      scanOnPush = TRUE|FALSE
    ),
    encryptionConfiguration = list(
      encryptionType = "AES256"|"KMS",
      kmsKey = "string"
    )
  )
)

Request syntax

svc$delete_repository(
  registryId = "string",
  repositoryName = "string",
  force = TRUE|FALSE
)

Examples

## Not run: 
# This example force deletes a repository named ubuntu in the default
# registry for an account. The force parameter is required if the
# repository contains images.
svc$delete_repository(
  force = TRUE,
  repositoryName = "ubuntu"
)

## End(Not run)