Menu
AWS S3 Doc LogoS3 DocDocs
GitHub
๐ŸŒœ
๐ŸŒž
AWS S3 Doc LogoS3 Doc
  • Docs
  • GitHub
  • What is Amazon S3?
    • Welcome
  • Introduction to Amazon S3
    • Introduction
  • Making Requests
    • MakingRequests
    • IPv6 access
    • Dual stack endpoints
    • MakingAuthenticatedRequests
    • AuthUsingAcctOrUserCredentials
    • AuthUsingAcctOrUserCredJava
    • AuthUsingAcctOrUserCredDotNet
    • AuthUsingAcctOrUserCredPHP3
    • AuthUsingAcctOrUserCredRuby
    • AuthUsingTempSessionToken
    • AuthUsingTempSessionTokenJava
    • AuthUsingTempSessionTokenDotNet
    • AuthUsingTempSessionTokenPHP
    • AuthUsingTempSessionTokenRuby
    • AuthUsingTempFederationToken
    • AuthUsingTempFederationTokenJava
    • AuthUsingTempFederationTokenDotNet
    • AuthUsingTempFederationTokenPHP
    • AuthUsingTempFederationTokenRuby
    • RESTAPI
    • VirtualHosting
    • RESTRedirect
  • Working with Amazon S3 Buckets
    • UsingBucket
    • BucketRestrictions
    • create-bucket-get-location-example
    • delete-or-empty-bucket
    • bucket-encryption
    • ManagingBucketWebsiteConfig
    • ConfigWebSiteConsole
    • ConfigWebSiteJava
    • ConfigWebSiteDotNet
    • ConfigWebSitePHP
    • ConfigWebSiteREST
    • Transfer Acceleration
    • Transfer acceleration examples
    • RequesterPaysBuckets
    • configure-requester-pays-console
    • configure-requester-pays-rest
    • RequesterPaysBucketConfiguration
    • BucketPayerValues
    • ObjectsinRequesterPaysBuckets
    • BucketAccess
    • BucketBilling
    • AWS Billing reports
    • AWS Usage report
    • Understanding Your AWS Billing and Usage Reports
    • CostAllocTagging
    • Amazon S3 Access Points
    • Creating Access Points
    • Using Access Points
    • Restrictions and Limitations
  • Working with Amazon S3 Objects
    • UsingObjects
    • UsingMetadata
    • Amazon S3 Storage Classes
    • ObjectAndSoubResource
    • ObjectVersioning
    • Object Tagging
    • Managing Object Tags
    • Managing Object Tags Using the Console
    • Managing Tags Using the AWS SDK for Java
    • Managing Tags Using the AWS SDK for .NET
    • Object Lifecycle Management
    • Additional Considerations for Lifecycle Configuration
    • Transitioning Objects Using Amazon S3 Lifecycle
    • Understanding Object Expiration
    • Lifecycle and Other Bucket Configurations
    • Lifecycle Configuration Elements
    • Examples of Lifecycle Configuration
    • Setting Lifecycle Configuration on a Bucket
    • Manage an Object's Lifecycle Using the Amazon S3 Console
    • Set Lifecycle Configurations Using the AWS CLI
    • Managing Object Lifecycles Using the AWS SDK for Java
    • Manage an Object's Lifecycle Using the AWS SDK for .NET
    • Manage an Object's Lifecycle Using the AWS SDK for Ruby
    • Manage an Object's Lifecycle Using the REST API
    • cors
    • ManageCorsUsing
    • ManageCorsUsingConsole
    • ManageCorsUsingJava
    • ManageCorsUsingDotNet
    • EnableCorsUsingREST
    • cors-troubleshooting
    • ObjectOperations
    • GettingObjectsUsingAPIs
    • RetrievingObjectUsingJava
    • RetrievingObjectUsingNetSDK
    • RetrieveObjSingleOpPHP
    • RetrieveObjSingleOpREST
    • ShareObjectPreSignedURL
    • ShareObjectPreSignedURLVSExplorer
    • ShareObjectPreSignedURLJavaSDK
    • ShareObjectPreSignedURLDotNetSDK
    • UploadingObjects
    • UploadInSingleOp
    • UploadObjSingleOpJava
    • UploadObjSingleOpNET
    • UploadObjSingleOpPHP
    • UploadObjSingleOpRuby
    • UploadObjSingleOpREST
    • UploadObjSingleOpCLI
    • uploadobjusingmpu
    • mpuoverview
    • qfacts
    • sdksupportformpu
    • mpuAndPermissions
    • usingHLmpuJava
    • HLuploadFileJava
    • HLAbortMPUploadsJava
    • HLTrackProgressMPUJava
    • mpListPartsJavaAPI
    • llJavaUploadFile
    • LLlistMPuploadsJava
    • LLAbortMPUJava
    • usingHLmpuDotNet
    • HLuploadFileDotNet
    • HLuploadDirDotNet
    • HLAbortDotNet
    • HLTrackProgressMPUDotNet
    • usingLLmpuDotNet
    • LLuploadFileDotNet
    • LLlistMPuploadsDotNet
    • LLTrackProgressMPUNet
    • LLAbortMPUnet
    • usingHLmpuPHP
    • usingLLmpuPHP
    • LLuploadFilePHP
    • LLlistMPuploadsPHP
    • LLAbortMPUphp
    • uploadobjusingmpu-ruby-sdk
    • UsingRESTAPImpUpload
    • PresignedUrlUploadObject
    • PresignedUrlUploadObjectJavaSDK
    • UploadObjectPreSignedURLDotNetSDK
    • UploadObjectPreSignedURLRubySDK
    • CopyingObjectsExamples
    • CopyingObjectsUsingAPIs
    • CopyingObjectUsingJava
    • CopyingObjectUsingNetSDK
    • CopyingObjectUsingPHP
    • CopyingObjectUsingRuby
    • CopyingObjectUsingREST
    • CopyingObjctsMPUapi
    • CopyingObjctsUsingLLJavaMPUapi
    • CopyingObjctsUsingLLNetMPUapi
    • CopyingObjctsUsingRESTMPUapi
    • ListingKeysUsingAPIs
    • ListingKeysHierarchy
    • ListingObjectKeysUsingJava
    • ListingObjectKeysUsingNetSDK
    • ListingObjectKeysUsingPHP
    • ListingObjectKeysUsingREST
    • DeletingObjects
    • DeletingOneObject
    • DeletingOneObjectUsingJava
    • DeletingOneObjectUsingNetSDK
    • DeletingOneObjectUsingPHPSDK
    • DeletingAnObjectsUsingREST
    • DeletingMultipleObjects
    • DeletingMultipleObjectsUsingJava
    • DeletingMultipleObjectsUsingNetSDK
    • DeletingMultipleObjectsUsingPHPSDK
    • DeletingMultipleObjectsUsingREST
    • selecting-content-from-objects
    • SelectObjectContentUsingJava
    • SelectObjectContentUsingRestApi
    • SelectObjectContentUsingOtherSDKs
    • Restoring Archived Objects
    • Restore an Archived Object Using the Amazon S3 Console
    • Restore an Archived Object Using the AWS SDK for Java
    • Restore an Archived Object Using the AWS SDK for .NET
    • Restore an Archived Object Using the REST API
    • Querying Archived Objects
    • Amazon S3 Analytics โ€“ Storage Class Analysis
  • Amazon S3 Security
    • Amazon S3 Security
    • DataDurability
    • Internetwork Traffic Privacy
    • UsingEncryption
    • Protecting Data Using Server-Side Encryption
    • UsingKMSEncryption
    • AWS Key Management Service in Amazon S3 Using the AWS SDKs
    • KMSUsingRESTAPI
    • UsingServerSideEncryption
    • SSEUsingJavaSDK
    • SSEUsingDotNetSDK
    • SSEUsingPHPSDK
    • SSEUsingRubySDK
    • SSEUsingRESTAPI
    • SSEUsingConsole
    • ServerSideEncryptionCustomerKeys
    • Server-Side Encryption with Customer-Provided Encryption Keys Using the AWS SDK for Java
    • Server-Side Encryption with Customer-Provided Encryption Keys Using the AWS SDK for .Net
    • ServerSideEncryptionCustomerKeysSSEUsingRESTAPI
    • UsingClientSideEncryption
    • s3-access-control
    • access-control-overview
    • how-s3-evaluates-access-control
    • access-control-auth-workflow-bucket-operation
    • access-control-auth-workflow-object-operation
    • access-policy-alternatives-guidelines
    • example-walkthroughs-managing-access
    • policy-eval-walkthrough-download-awscli
    • example-walkthroughs-managing-access-example1
    • example-walkthroughs-managing-access-example2
    • example-walkthroughs-managing-access-example3
    • example-walkthroughs-managing-access-example4
    • using-iam-policies
    • access-policy-language-overview
    • s3-arn-format
    • s3-bucket-user-policy-specifying-principal-intro
    • using-with-s3-actions
    • amazon-s3-policy-keys
    • example-bucket-policies
    • example-bucket-policies-vpc-endpoint
    • example-policies-s3
    • walkthrough1
    • S3_ACLs_UsingACLs
    • acl-overview
    • managing-acls
    • manage-acls-using-console
    • acl-using-java-sdk
    • acl-using-dot-net-sdk
    • acl-using-rest-api
    • access-control-block-public-access
    • s3-incident-response
    • s3-compliance
    • storage-inventory
    • disaster-recovery-resiliency
    • Versioning
    • manage-versioning-examples
    • manage-objects-versioned-bucket
    • AddingObjectstoVersioningEnabledBuckets
    • list-obj-version-enabled-bucket
    • RetrievingObjectVersions
    • RetMetaOfObjVersion
    • DeletingObjectVersions
    • UsingMFADelete
    • DeleteMarker
    • RemDelMarker
    • transitioning-object-versions
    • RestoringPreviousVersions
    • VersionedObjectPermissionsandACLs
    • VersionSuspendedBehavior
    • AddingObjectstoVersionSuspendedBuckets
    • RetrievingObjectsfromVersioningSuspendedBuckets
    • DeletingObjectsfromVersioningSuspendedBuckets
    • object-lock
    • object-lock-overview
    • object-lock-managing
    • network-isolation
    • vulnerability-analysis-and-management
    • security-best-practices
    • batch-ops
    • batch-ops-basics
    • batch-ops-create-job
    • batch-ops-iam-role-policies
    • batch-ops-operations
    • batch-ops-copy-object
    • batch-ops-initiate-restore-object
    • batch-ops-invoke-lambda
    • batch-ops-put-object-acl
    • batch-ops-put-object-tagging
    • batch-ops-managing-jobs
    • batch-ops-examples
    • batch-ops-examples-reports
    • batch-ops-examples-xcopy
    • batch-ops-examples-cli
    • batch-ops-examples-java
  • Hosting a Static Website on Amazon S3
    • WebsiteHosting
    • WebsiteEndpoints
    • HowDoIWebsiteConfiguration
    • EnableWebsiteHosting
    • IndexDocumentSupport
    • WebsiteAccessPermissionsReqd
    • LoggingWebsiteTraffic
    • CustomErrorDocSupport
    • how-to-page-redirect
    • hosting-websites-on-s3-examples
    • HostingWebsiteOnS3Setup
    • website-hosting-custom-domain-walkthrough
    • website-hosting-cloudfront-walkthrough
    • getting-started-cleanup
  • Configuring Amazon S3 Event Notifications
    • NotificationHowTo
    • ways-to-add-notification-config-to-bucket
    • notification-content-structure
  • Replication
    • replication
    • replication-what-is-isnot-replicated
    • replication-how-setup
    • replication-add-config
    • setting-repl-config-perm-overview
    • replication-additional-configs
    • replication-time-control
    • enabling-replication-time-control
    • using-replication-metrics
    • using-s3-events-to-track-rtc
    • rtc-best-practices
    • replication-change-owner
    • replication-config-for-kms-objects
    • replication-example-walkthroughs
    • replication-walkthrough1
    • replication-walkthrough-2
    • replication-walkthrough-3
    • replication-walkthrough-4
    • replication-walkthrough-5
    • replication-status
    • replication-troubleshoot
    • replication-and-other-bucket-configs
  • Request Routing
    • UsingRouting
    • Redirects
    • DNSConsiderations
  • Optimizing
    • optimizing-performance
    • optimizing-performance-guidelines
    • optimizing-performance-design-patterns
  • Monitoring
    • monitoring-overview
    • monitoring-automated-manual
    • cloudwatch-monitoring
    • metrics-configurations
    • logging-with-S3
    • cloudtrail-logging
    • cloudtrail-request-identification
  • Using BitTorrent with Amazon S3
    • S3Torrent
    • S3TorrentCharge
    • S3TorrentRetrieve
    • S3TorrentPublish
  • Handling REST and SOAP Errors
    • HandlingErrors
    • UsingRESTError
    • ErrorResponse
    • ErrorCode
    • ErrorMessage
    • ErrorDetails
    • UsingSOAPError
    • ErrorBestPractices
  • Troubleshooting Amazon S3
    • troubleshooting
  • Amazon S3 Server Access Logging
    • ServerLogs
    • enable-logging-console
    • enable-logging-programming
    • LogFormat
    • deleting-log-files-lifecycle
    • using-s3-access-logs-to-identify-requests
  • Using the AWS SDKs, CLI, and Explorers
    • UsingAWSSDK
    • setup-aws-cli
    • UsingTheMPJavaAPI
    • UsingTheMPDotNetAPI
    • UsingTheMPphpAPI
    • UsingTheMPRubyAPI
    • UsingTheBotoAPI
    • using-mobile-sdks
    • using-aws-amplify
  • Appendices
    • Appendices
    • SOAPAPI3
    • UsingSOAPOperations
    • SOAPAuthentication
    • SOAPAccessPolicy
    • auth-request-sig-v2
    • S3_Authentication2
    • RESTAuthentication
    • UsingHTTPPOST
    • HTTPPOSTForms
    • HTTPPOSTExamples
    • HTTPPOSTFlash
  • Amazon S3 Resources
    • RelatedResources012
    • s3-glacier-select-sql-reference
    • s3-glacier-select-sql-reference-select
    • s3-glacier-select-sql-reference-data-types
    • s3-glacier-select-sql-reference-operators
    • s3-glacier-select-sql-reference-keyword-list
    • s3-glacier-select-sql-reference-sql-functions
    • s3-glacier-select-sql-reference-aggregate
    • s3-glacier-select-sql-reference-conditional
    • s3-glacier-select-sql-reference-conversion
    • s3-glacier-select-sql-reference-date
    • s3-glacier-select-sql-reference-string
  • Document History
    • WhatsNew
  • AWS Glossary
    • glossary

DeletingOneObject

Deleting One Object Per Request#

Topics

  • Deleting an Object Using the AWS SDK for Java
  • Deleting an Object Using the AWS SDK for .NET
  • Deleting an Object Using the AWS SDK for PHP
  • Deleting an Object Using the REST API

To delete one object per request, use the DELETE API (see DELETE Object). To learn more about object deletion, see Deleting Objects.

You can use either the REST API directly or the wrapper libraries provided by the AWS SDKs that simplify application development.

Edit this page
Previous
ยซ DeletingObjects
Next
DeletingOneObjectUsingJava ยป

Docs

  • Welcome

Community

  • Stack Overflow
  • Discord
  • Apply

Social

  • GitHub
  • Twitter
Copyright ยฉ 2020. Built with Docusaurus.