Created
May 1, 2018 07:20
-
-
Save mikeyjk/baf71a2101fb982217ea08e8c02fef38 to your computer and use it in GitHub Desktop.
jQuery for deleting S3 assets via web UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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