Truncate azure table storage

Vineet S 1,390 Reputation points
2025-05-21T17:26:51.1166667+00:00

Hi Wanted to truncate azure storage table but unable to do so using trucnate and web acitivity...pls help me with screenshot

User's image

https://learn.microsoft.com/en-us/azure/storage/tables/table-storage-overview

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

Answer accepted by question author
  1. RevelinoB 3,685 Reputation points
    2025-05-21T17:53:07.53+00:00

    Hello Vineet, I’ve been in the same situation, and it was honestly more frustrating than I expected.

    I was trying to truncate an Azure Storage Table using a Web activity in Azure Data Factory, assuming it would be as simple as calling a DELETE or something similar. But it turns out, Azure Table Storage doesn’t support a direct “truncate” operation. There’s no single API call to just wipe the whole table — which is super counterintuitive.

    I tried all sorts of workarounds: messing with Web activities, different endpoints, hoping there was some undocumented trick... but nothing worked. In the end, I had to create a small Azure Function that deletes all entities in the table, and then trigger that function from ADF. It works, but definitely not something you figure out in five minutes.

    This page actually helped me more than the general overview:

    https://learn.microsoft.com/en-us/rest/api/storageservices/delete-entity1

    Hope that helps — let me know if you want a hand with setting up the function or calling it from ADF. It’s a bit of a pain at first, but it’s manageable once you know the trick.

    Best regards,

    Revelino


0 additional answers

Sort by: Most helpful

Your answer

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