+ Start a Discussion

why are deleted events not seen by the API?

for example this returns no records but I can see them in the recycle bin.



select count() from event where isDeleted = true



A normal Query will not return deleted records. Thus, your query would never return a value. You should add the ALL ROWS modifier in order to see deleted records.



select count() from event where isdeleted = true all rows