PS Commands to remove bounce contacts and opt out from Distribution List

I need the power shell commands to remove contacts from a Office 365 that are undeliverable.

I also would like to create an opt-out link so contacts can remove themselves from the Distribution List.

Does anyone have experience with these 2 power shell commands?