The delete command records a pending change of type "delete" in your workspace for the items that you have specified. When you commit a pending change of type "delete" to the Team Foundation source control server by using the checkin command, Team Foundation removes the item from the Team Foundation source control server but does not delete it permanently. You can locate deleted items in the Team Foundation source control server by using the Dir Command and you can restore deleted items using the Undelete Command.
The delete command adds specified items to the list of pending changes in your workspace. To commit a pending deletion to the Team Foundation source control server and complete the delete operation, you must check in the pending change. For more information, see How to: Check In Pending Changes.
If you have deleted an item in your workspace but have not checked in the change, you can restore the item to your workspace and remove the deletion from your list of pending changes using the Undo Command.
You cannot delete an item for which another pending change exists. For example, a checked out file cannot be deleted. To delete such items, you must undo the current pending change using the undo command.
When you check in a pending deletion, Team Foundation marks the file as deleted in the Team Foundation source control server. Subsequently running a get of the item from other workspaces (either by you or other users) deletes the item from those workspaces.
When your itemspec specifies a folder, Team Foundation deletes all its files and subfolders and the files they contain, by default.