The function will through away all changes made in the workspace for the currently opened workspace. After discarding, the workspace will be closed and removed.