Open phw198 opened 7 years ago
Two possible enhancements here:
Was this resolved? I have the same problem please.
@jthannickal I did recently add the ability to remove the OGCS metadata added to synced events, but that's not going to remove the actual synced items. It's intended to help resolve items that OGCS keeps wanting to delete that it shouldn't.
To be honest, I'm really not sure about providing the feature to delete synced items as it is fraught with danger! For example, if users are, or have ever, configured
:bulb: However, here's a semi-automated method that might help:-
This will be used to drive the calendar items you want to delete.
Settings
> Application Behaviour
> Logging
> Create CSV files of calendar entries
Open Log
google_events.csv
This is required to allow the calendar items to be deleted via a script. We can just use the same token that OGCS uses, since that already has access.
Google.Apis.Auth.OAuth2.Responses.TokenResponse-user
and open it in Notepad.exe
{"access_token":"<big_long_string>","token_type"
<big_long_string>
- everything between the speech marks T1
in your CSV spreadsheet.T2
enter the formula:
="curl --request DELETE --header ""Authorization: Bearer """& T$1 & """ --header ""Accept: application/json"" --compressed " & """https://www.googleapis.com/calendar/v3/calendars/"& SUBSTITUTE(M2,"@","%40") &"/events/"& L2 &""""
C:\temp
cmd
)cd C:\temp\curl-7.64.1-win64-mingw\bin
T2
and paste it into the cmd window. That should have deleted the event! :wastebasket: deletes.bat
file and then just execute that.View
> Change View
> List
Created
column to order by thatField Chooser
1.1 Select User-defined fields in folder
from the dropdown
1.1 Click and drag googleEventID
onto the column headers.
1.1 Items synced by OGCS from Google will have a value in this new column.Shift
and click the last one. (Or press Ctrl
and click each item individually):beers: That's got to be worth a beer hasn't it? :wink:
miscott wrote at 2016-03-21 14:33: