I have this code from another question that works perfectly for me, but I'd like to get it to remove the duplicates of every sheet and not just the currently active one. This is also for large spreadsheets with a lot of data, so I have to keep the 6min execution time maximum in mind as well. Does anyone have any ideas?
Here's my code:
function removeDuplicates() {
SpreadsheetApp.getActiveSheet().getDataRange().removeDuplicates();
}