(albumName, photoKey)
| 186 | |
| 187 | // snippet-start:[s3.JavaScript.photoAlbumExample.deletePhoto] |
| 188 | function deletePhoto(albumName, photoKey) { |
| 189 | s3.deleteObject({ Key: photoKey }, function (err, data) { |
| 190 | if (err) { |
| 191 | return alert("There was an error deleting your photo: ", err.message); |
| 192 | } |
| 193 | alert("Successfully deleted photo."); |
| 194 | viewAlbum(albumName); |
| 195 | }); |
| 196 | } |
| 197 | // snippet-end:[s3.JavaScript.photoAlbumExample.deletePhoto] |
| 198 | |
| 199 | // snippet-start:[s3.JavaScript.photoAlbumExample.deleteAlbum] |
nothing calls this directly
no test coverage detected