DELETE Verb not working with WebApi and IIS

Recently I’ve had a problem where a deployed WebApi service did not accept the DELETE verb (locally, using IISExpress it worked). The solution was to remove the WebDAV module and handler for the specific site. So extend the web.config of the WebApi project with:

            <remove name="WebDAVModule" />
            <remove name="WebDAV" />

Then it worked just fine.