function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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