You've got it right!
Do not delete anything unless:
1- you understand its purpose;
2- you have a compelling reason for deleting it;
3- you know how to delete it correctly; and
4- you have a way to go back if you discover that you made a mistake.
So many people here get themselves into trouble because they delete something that
- doesn't make sense to them
- looks wrong to them
- takes up 'too much space'
- seems unnecessary in their judgement
- has no purpose in their view
- is spying on them, in their opinion
- shouldn't be there, according to a YouTube video
None of the above are reasons to delete something.
Debug folders are common. They are created by software developers to check their code, and can be very helpful when troubleshooting a problem.