Fixing error while deleting resource history, adding resource version deletion in the GUI