AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the DeletePackageVersions operation.
Deletes one or more versions of a package. A deleted package version cannot be restored
in your repository. If you want to remove a package version from your repository and
be able to restore it later, set its status to Archived
. Archived packages
cannot be downloaded from a repository and don't show up with list package APIs (for
example, ListPackageVersions),
but you can restore them using UpdatePackageVersionsStatus.
Namespace: Amazon.CodeArtifact.Model
Assembly: AWSSDK.CodeArtifact.dll
Version: 3.x.y.z
public class DeletePackageVersionsRequest : AmazonCodeArtifactRequest IAmazonWebServiceRequest
The DeletePackageVersionsRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
DeletePackageVersionsRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
Domain | System.String |
Gets and sets the property Domain. The name of the domain that contains the package to delete. |
![]() |
DomainOwner | System.String |
Gets and sets the property DomainOwner. The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. |
![]() |
ExpectedStatus | Amazon.CodeArtifact.PackageVersionStatus |
Gets and sets the property ExpectedStatus. The expected status of the package version to delete. |
![]() |
Format | Amazon.CodeArtifact.PackageFormat |
Gets and sets the property Format. The format of the package versions to delete. |
![]() |
Namespace | System.String |
Gets and sets the property Namespace. The namespace of the package versions to be deleted. The package component that specifies its namespace depends on its type. For example: The namespace is required when deleting package versions of the following formats:
|
![]() |
Package | System.String |
Gets and sets the property Package. The name of the package with the versions to delete. |
![]() |
Repository | System.String |
Gets and sets the property Repository. The name of the repository that contains the package versions to delete. |
![]() |
Versions | System.Collections.Generic.List<System.String> |
Gets and sets the property Versions. An array of strings that specify the versions of the package to delete. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5