Finish POST /api/delete_all
POST /api/delete_all
exists but deletes all files on the user. I'd like the route to be more flexible so you can e.g delete all objects that are over 2 weeks.
-
Addcheck proposed apiuntil
parameter(as ISO timstamp) onPOST /api/delete_all
. -
Frontend support.
proposed api
POST /api/delete_all
-
TODO do we include some
include_*_after
if someone wants to delete some files from yesterday for example?
field | type | descrption |
---|---|---|
include_files_until | ?iso timestamp | delete files that are older than the given date |
include_shortens_until | ?iso timestamp | delete shortens that are older than the given date |
include_files_after | ?iso timestamp | delete files that are newer than the given date |
include_shortens_after | ?iso timestamp | delete shortens that are newer than the given date |
include_on | ?domain id | delete objects in the given domain (default any domain) |
returns 204. an email is sent if the job succeeded or failed.
GET /api/compute_delete_all_count
Same fields as POST /api/delete/all
, output:
field | type | descrption |
---|---|---|
file_count | int | total amount of files in the given time ranges |
shorten_count | int | total amount of shortens in the given time ranges |
Edited by luna