title: How to delete multiple rows in DynamoDB?
body: <p>I am attempting to delete data from a DynamoDB table.</p>
  <p>If I delete data using a partition key, it works.</p>
  <p>But when I delete multiple rows using any other fields, it fails.</p>
  <pre class="lang-js prettyprint-override"><code>  var params = {
      TableName: &quot;test&quot;,
      Key: {
        dmac: dmac,
      },
      ConditionExpression: &quot;dmac= :dmac&quot;
    };
  
    docClient.delete( params, (error) =&gt; {
      if (error) {
        console.log( &quot;Delete data fail&quot; );
      } else { 
        console.log( &quot;Delete data Success&quot; );
      }
    });
  </code></pre>