title: Find (to recover or permanently delete) deleted versioned S3 file
body: <p>I have an S3 bucket with versioning turned on. I want to figure out how to permanently delete a file and all its version (for security reasons) and be able to recover a deleted file.</p>
  
  <p>I know I need to remove the Delete Marker from other posts, but I cannot find the necessary information from <code>s3api list-object-versions</code></p>
  
  <p>1) I performed a small test and <strong>uploaded</strong> a file via console called <code>smallerfile.txt</code>, then ran the list command</p>
  
  <pre><code>aws s3api list-object-versions --bucket myBucket --prefix small
  </code></pre>
  
  <p>2) I was presented with all of its info such VersionId, ETag, Key, Size, etc...</p>
  
  <p>3) I then confirmed via console the file was there and showed its version, and then <strong>Deleted</strong> the file via console.</p>
  
  <p>4) I re-ran the same list-object-versions command expecting to see the file but instead I get <strong>no results</strong>.</p>
  
  <p><strong>How can I find the deleted file</strong> and its delete marker?</p>
  
  <p>Maybe I'm just using the wrong find command or missing a param?</p>
  
  <hr>
  
  <p>example console outputs to show exactly what I mean;</p>
  
  <p>[ uploaded file via console ]</p>
  
  <pre><code>joshua$ aws s3api list-object-versions --bucket myBucket --prefix small
  {
      "Versions": [
          {
              "LastModified": "2019-07-26T17:22:35.000Z",
              "VersionId": "miVHm_RA7Bedy4FEYXjLt537V677UT",
              "ETag": "\"0f343b0944326a20f133d67c2b984a3b\"",
              "StorageClass": "STANDARD",
              "Key": "smallerfile.txt",
              "Owner": {
                  "DisplayName": "joshua",
                  "ID": "5fcc1002f611303c07ed02d117bbac143ac3f032daf63d60340b7b13050b"
              },
              "IsLatest": true,
              "Size": 1024
          }
      ]
  }
  </code></pre>
  
  <p>[ deleted file via console]</p>
  
  <pre><code>joshua$ aws s3api list-object-versions --bucket myBucket --prefix small
  joshua$
  </code></pre>
  
  <p>[ no results displayed ]</p>