title: Can you delete google sheet row on http.post() method?
body: <p>I make an http <code>.put()</code> call from FLutter app, to put my data on google sheet. I could not really implement <code>.delete()</code> method to delete row, so now trying to delete still using <code>put</code> method.  When &quot;delete&quot; button is pressed I am changing all values of variables to &quot;deleted&quot; and changing value of &quot;quantity&quot; to the item which I want to delete and passing all this to google script with <code>get()</code>. ( I know...very hard coded :), trying to get it done anyway :D) So in my Google Scripts I'm putting condition:
  <a href="https://i.stack.imgur.com/OENG8.jpg" rel="nofollow noreferrer">code ex</a></p>
  <pre><code>function doPost(request){
    
    var sheet = SpreadsheetApp.openById(&quot;1AVouGZs3U2I4xM941sKWqgfJzyiUgP8-1lTI4gTX4tg&quot;);
          
      var name = request.parameter.name;
      var product = request.parameter.product;
      var quantity = request.parameter.quantity;
    
   if (name != &quot;delete&quot;) { 
   try{
     
    sheet.appendRow([name, product, quantity]);
  
    }
  
  }
   
     if (name == &quot;delete&quot; ) { 
     try{
     sheet.deleteRow(quantity); // quantity indicates index of item that needs to be deleted
  
    }
  </code></pre>
  <p>Is it mandatory to use <code>http.delete()</code> method or is there any mistake in my code? P.S.: Just a beginner!</p>