I mean, we all know the DoS/DDoS where machine(s) are flooding servers/computers with traffic that it cannot handle. Eventually, it just goes down and nothing can connect to it, neither connect itself to anything.
But if I was for example, to make malware that would delete some important files and put itself on the server which hosts that site (or something else), and delete files which would cause it to again, go down. Would this be considered a DoS? Because I've technically denied the service of that server.