title: Firebase Storage Allow Deleting Files
body: <p>I have the following rules for user post image uploads, however current rules don't allow file deletion.</p>
  
  <p>How can I modify the rules to allow user to delete his pictures?</p>
  
  <p>What property on <code>request</code> variable indicates that a request is <code>DELETE</code>?</p>
  
  <pre><code>  match /{uid}/posts/{pid}/{imageName} {
      allow read;
      allow write: if (uid == request.auth.uid)
          &amp;&amp; ((
              ((imageName == "pic.jpg") || (imageName == "pic.png") || (imageName == "pic.gif"))
              &amp;&amp; (request.resource.size &lt; 5 * 1024 * 1024)
              &amp;&amp; (request.resource.contentType.matches('image/.*')) 
        ));
    }
  </code></pre>
  
  <p>Is there something like this?:</p>
  
  <pre><code>request.method == "DELETE"
  </code></pre>
  
  <p>I can't find anything in the documentation.</p>