The Check data integrity function checks the consistency and the redundancy of data. It can be accessed from Configuration.
All the values from the screenshot need to meet the consistency standards.
If you deactivate a survey, the token tables, the response tables etc., will not be automatically deleted. They will get stored in archived tables. If you do not need them anymore, use the Check data integrity function and select the "leftovers" you wish to delete: