title: HttpDelete not working in Web Api
body: <p>I am trying to create <code>HttpDelete</code>service in my <code>Web Api</code> but its not working and giving me the follwoing error </p>
  
  <pre><code>Handler "WebDAV" has a bad module "WebDAVModule" in its module list
  </code></pre>
  
  <p>My service code implemented as follows</p>
  
  <pre><code>   [HttpDelete]
      public string DeleteItem(long itemId)
      {
          try
          {
              // Implementation goes here
          }
          catch (Exception ex)
          {
              throw ex;
          }
      }
  </code></pre>
  
  <p>I am using the following http request using <code>Postman</code> plugin using <code>HTTPDelete</code> method</p>
  
  <pre><code>  http://localhost:85/RM.Services/api/Item/DeleteItem?itemId=12 
  </code></pre>
  
  <p>I used the following configuration to solve this issue at <code>web.config</code></p>
  
  <pre><code>&lt;system.webServer&gt;
      &lt;modules&gt;
          &lt;remove name="WebDAVModule" /&gt;
      &lt;/modules&gt;
      &lt;handlers&gt;
          &lt;remove name="WebDAV" /&gt;
      &lt;/handlers&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>also trying the following settings in <code>web.config</code></p>
  
  <pre><code>  &lt;system.webServer&gt;
        &lt;validation validateIntegratedModeConfiguration="false" /&gt;
        &lt;modules runAllManagedModulesForAllRequests="true"&gt;
          &lt;remove name="WebDAVModule" /&gt;
        &lt;/modules&gt;
    &lt;/system.webServer&gt;
  </code></pre>
  
  <p>but nothing work for me the same error appears</p>
  
  <p>I tried to remove <code>WebDav</code> from <code>IIS</code> with the following steps </p>
  
  <ol>
  <li>go to <code>Control Panel</code> then <code>Programs and Fetures</code> then <code>Turn windows features on or off</code></li>
  <li>then <code>Internet Information Services</code> then <code>World Wide Web Services</code> then <code>Common HTTP Features</code> </li>
  <li>then remove <code>WebDav Features</code></li>
  </ol>
  
  <p>In this case i recieved <code>404</code> error</p>
  
  <p>Any help in this issue?</p>