Learn R Programming

paws.compute (version 0.1.12)

ecr_delete_repository: Deletes a repository

Description

Deletes a repository. If the repository contains images, you must either delete all images in the repository or use the force option to delete the repository.

Usage

ecr_delete_repository(registryId, repositoryName, force)

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"
    )
  )
)

Arguments

registryId

The AWS 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 a repository contains images, forces the deletion.

Request syntax

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

Examples

Run this code
if (FALSE) {
# 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"
)
}

Run the code above in your browser using DataLab