I need to delete all tasks (Activity object) with a Set ownerId.
I noticed that when I write query on Developer Console for getting task records and I can get 10 records, but when I write query on apex class then I just get only task record that related to current user.
I have checked security and I think there are a potential solution is that implement a sharing rule to set edit for a group of user and set Org wide default to private. I am wondering there are any solution for this.
Can anyone give me some advices for this case?