var style = document.styleSheets[1]
style.deleteRule(`.block__header::after`)
console.log(`.block__header::after`)
What is preventing it from being removed from the CSS document?
The pseudo-class is still found in the console, and when trying to delete it by looping through all stylesheets, it removes all CSS from the document.
for (var i = 0; i < 1000; i++) {
style.deleteRule(`.block__header::after`)
}