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.
181 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,936 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.