Hello @michaeledi - the listing of entries and the exporting of entries in the command line is the same as it is in the WordPress admin dashboard. You can’t show entries based on a start and end date, and the start and end date options are only available on export.
I think you will need to do this in two steps using the CLI:
- export the entries to a csv file using the
--start_date
and--end_date
parameters - read the entry IDs from that csv file into your
wp gf entry delete
command
I tried for a little bit to get this exactly right, but could only come up with a hacky method the relied upon me knowing which column in the CSV contains the entry ID. Someone with better shell skills could definitely make this happen. I will leave this open in case someone can add their own thoughts or approach. Thank you.