Skip to content

Instantly share code, notes, and snippets.

@mikeyjk
Created May 1, 2018 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeyjk/baf71a2101fb982217ea08e8c02fef38 to your computer and use it in GitHub Desktop.
Save mikeyjk/baf71a2101fb982217ea08e8c02fef38 to your computer and use it in GitHub Desktop.
jQuery for deleting S3 assets via web UI
jQuery('.columbia-table.object-table-versioned > table > tbody > tr').each(function () {
if (
jQuery(this).find('td a.list-view-item-name') &&
// jQuery(this).find('td a.list-view-item-name').text().indexOf("Apr 4, 2018 2:04:00 PM") >= 0 &&
jQuery(this).find('td a.list-view-item-name').text().indexOf("(Delete marker)") >= 0
) {
jQuery(this).find('td input').click();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment