MoveToTrash Method
Moves the selected file or folder to the trash.
Syntax
[VB.NET] Public Sub MoveToTrash()
[C#] public void MoveToTrash();
Remarks
This method moves file or folder specified by ResourceId to the trash. The resource may be restored from the trash by calling RestoreFromTrash.
To permanently delete a resource call DeleteResource.
NOTE: This method has a corresponding asynchronous version (MoveToTrashAsync) for use in the Xamarin environment.