CARVIEW |
Select Language
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html; charset=iso-8859-1
Content-Length: 306
Connection: keep-alive
Date: Thu, 24 Jul 2025 07:05:13 GMT
Location: https://sdk.amazonaws.com/kotlin/api/latest/lambda/aws.sdk.kotlin.services.lambda/-lambda-client/delete-layer-version.html
Server: Server
Cache-Control: max-age=600
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=47304000; includeSubDomains
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Security-Policy: upgrade-insecure-requests; script-src 'self' 'unsafe-inline' *.awsstatic.com *.cdn.uis.awsstatic.com *.cdn.console.awsstatic.com d2c.aws.amazon.com a0.awsstatic.com *.feedback.console.aws.dev insights.docs.aws.com wss://insights.docs.aws.com/prod; object-src 'none';
X-Cache: Miss from cloudfront
Via: 1.1 80485f497dde60cfba8680bcbc6862d0.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: BOM78-P5
X-Amz-Cf-Id: sB-Q_KeFqhXn1OBheu9dKBOffAkkMCvCwT4kFsGmtVdnsEvujJsnEw==
HTTP/1.1 200 OK
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Date: Thu, 24 Jul 2025 07:05:15 GMT
Last-Modified: Wed, 23 Jul 2025 22:39:34 GMT
ETag: W/"3d8f306c017517ecf36051eb50b37adc"
x-amz-server-side-encryption: AES256
Server: AmazonS3
Via: 1.1 66c9faed33e20303fb7807416114a960.cloudfront.net (CloudFront), 1.1 1c78559300107093ca4007ca361b8f00.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: TLV50-C1
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: upgrade-insecure-requests; script-src 'self' 'unsafe-inline' *.awsstatic.com *.cdn.uis.awsstatic.com *.cdn.console.awsstatic.com docs.aws.amazon.com https://*.shortbread.aws.dev; img-src 'self' https://amazonwebservices.d2.sc.omtrdc.net https://aws.demdex.net https://dpm.demdex.net https://cm.everesttech.net https://a0.awsstatic.com/; frame-src 'self' https://aws.demdex.net https://dpm.demdex.net; connect-src 'self' https://amazonwebservices.d2.sc.omtrdc.net https://aws.demdex.net https://dpm.demdex.net https://cm.everesttech.net https://a0.awsstatic.com/ https://d2c.aws.amazon.com https://vs.aws.amazon.com https://*.shortbread.aws.dev; object-src 'none'; frame-ancestors 'self'; base-uri 'none'
Strict-Transport-Security: max-age=31536000
Cache-Control: no-store, no-cache, must-revalidate
Content-Encoding: gzip
Vary: Accept-Encoding
X-Cache: Miss from cloudfront
X-Amz-Cf-Pop: BOM78-P1
X-Amz-Cf-Id: 6chJPYTQEhftMafkpEwZk6WMzTHiT7q7mzRxTSjacpZCpnpa8zRdNQ==
deleteLayerVersion
AWS SDK for Kotlin
delete
1.5.2
Platform filter
deleteLayerVersion
abstract suspend fun deleteLayerVersion(input: DeleteLayerVersionRequest): DeleteLayerVersionResponse
Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
Samples
fun main() {
//sampleStart
// The following example deletes version 2 of a layer named my layer.
lambdaClient.deleteLayerVersion {
layerName = "my-layer"
versionNumber = 2
}
//sampleEnd
}