-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added working delete function for photos #159
Conversation
Would definitely like to see this merged. Fix the long lines:
|
Also, consider making a way to batch delete. I've been posting with 100 operations at a time with no issue but I figure if you sent thousands of HTTP requests for only 1 operation that's very inefficient and the API will throttle a lot more. Perhaps like a |
For permanent deletion, use |
worked great for me. can we merge this in soon? @r3ticuli any progress? |
I’ll fix this in the coming hours. And agreed - we can add more to it later.
… On Dec 10, 2017, at 1:05 PM, Julien Lhermitte ***@***.***> wrote:
worked great for me. can we merge this in soon? @r3ticuli <https://github.com/r3ticuli> any progress?
we can add more features to it later perhaps?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#159 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACPZzmInUSsDsguJKUti8Moevh8Jl5QJks5s_B10gaJpZM4QFR3B>.
|
now conforms to 79 char max line-length
now conforms to 79 char max line-length
…yicloud into feature/adding-delete
done! waiting for review now. |
@torarnv this gets a +1 from me |
👍 from a user photos_iter = iter(api.photos.all)
for i, photo in enumerate(photos_iter):
print(f"Deleting file {photo.filename}")
photo.delete() I think I had to run it a few times (because not all files were deleted, probably an apple side bug). |
Co-authored-by: sebastian messier <sebastian.messier@flexreceipts.com>
Co-authored-by: sebastian messier <sebastian.messier@flexreceipts.com>
Added working delete function for CPLAssets.
Fixes #239