Deleting and updating entries in Azure Storage tables with Function(python)

Jon Mart 136 Reputation points
2020-11-16T20:43:27.583+00:00

I'm looking to write code in a Azure Function(Python) that can delete rows in a storage table? I would like to submit a row/partition key and delete the matching row. Any pointers would be nice.

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
164 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,949 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,422 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,456 Reputation points
    2020-11-16T22:46:54.507+00:00

    Hello @Jon Mart ,
    You can Delete an entity by passing its PartitionKey and RowKey to the delete_entity method. Please see this Azure doc for more info.

    table_service.delete_entity('tasktable', 'tasksSeattle', '001')  
    

    Hope that helps. Let us know if you have further question

    Thanks,
    Grace