Forum Discussion
How do you delete specific rows from a Lakehouse table?
- Anonymous2 years ago
Hi arpost ,
Thanks for using Fabric Community.It is possible to delete rows in a Lakehouse table using Spark-SQL in notebooks. I have created a repro of the scenario. I have attached the screenshots for your reference.
Trying to delete the row which has value of 46134
Query succeeded
After deletion of the row:
You can refer this link for more information: Link1
Hope this helps. Do let us know if you have any further issues. Glad to help.
It doesn't work in a programmatic manner.
If you have pre-defined solution, then you can make the SQL command.
But if you for example create a table of keys and try to delete those rows, that is not possible atm.
Couple of options:
- Delete everything and recreate all of it without the lines you wanted to delete.
- Use Power Query filtering in dataflow and make the dataflow to overwrite the data.