Question: I have a remote database that can change at any time. I need to find a way to keep my sqlite database update with all the changes in the better and optimised way possible. 

I thought having a single timestamp per table and send only the updated table to the client would be one solution, or maybe having one timestamp per row and sending only the updated row to the client..

But 
- how can i manage deleted items, for example?
- how can i manage the technical update on Android?

Basically, in a few words, at some point in the app, i need to download the changes with an API and update the local db.

Does anyone have some ideas?

Thanks

Answer: 
The syntax looks correct to me. What do you see when you just run the Get-AzureDisk command? AzureDisk retrieves data for all the disks in the disk repository for the current subscription (<https://msdn.microsoft.com/en-us/library/azure/dn495125.aspx>). If the outputs from both command s(the one that you ran and the output of AzureDisks) are the same, you may have selected a subscription which do not have that many unattached disks.

Thanks,
Aung
to my opinion, this code is clean, simple, and does the job.

```
$disksList =  (Get-AzDisk | select  DiskState,Name,ResourceGroupName | where DiskState -eq 'Unattached')

  foreach($disk in $disksList){

    Remove-AzDisk -DiskName $disk.Name -ResourceGroupName $disk.ResourceGroupName -Force

  }

```