Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > dd7204292d310452063d09b5de9c13b7 > files > 616

aws-cli-docs-1.16.163-1.mga7.noarch.rpm

**To delete an item**

This example deletes an item from the *MusicCollection* table.

Command::

  aws dynamodb delete-item --table-name MusicCollection --key file://key.json

The arguments for ``--key`` are stored in a JSON file, ``key.json``.  Here are the contents of that file::

  {
      "Artist": {"S": "No One You Know"},
      "SongTitle": {"S": "Scared of My Shadow"}
  }

Output::

  {
      "ConsumedCapacity": {
          "CapacityUnits": 1.0, 
          "TableName": "MusicCollection"
      }
  }