return executeFacetMetaDataOperation(uid, "FluxtreamCapture", "photo", facetId, new FacetMetaDataOperation() {
@Override
@NotNull
public Response executeOperation(@NotNull final AbstractFacet facet) {
FluxtreamCapturePhotoFacet photoFacet = (FluxtreamCapturePhotoFacet) facet;
final String photoStoreKey = FluxtreamCapturePhoto.createPhotoStoreKey(photoFacet.guestId, photoFacet.getCaptureYYYYDDD(), photoFacet.start, photoFacet.getHash());
try {
fluxtreamCapturePhotoStore.deletePhoto(photoStoreKey);
facetDao.delete(facet);
} catch (FluxtreamCapturePhotoStore.StorageException e) {
return Response.serverError().build();