You can use Regular Labs ReReplacer along with Regex to remove the K2.js file
for any version of K2.
Below is the code to use in the search field (leave replace field empty)
Remove K2 JS (Only):
<script src="/media/k2/assets/js/k2.frontend.js(.*?)><\/script>
Remove K2 CSS & JS:
<script src="/media/k2/assets/(.*?)><\/script>
You MUST enable to Regular Expressions parameter for it to work: