To delete all the inactive members in your community go to:
Communities » Community » Members » Delete Inactive Members
Click on Delete Inactive Members
The system shows a pop-up where you can download the inactive members data before confirming to Delete Inactive Members .
You can click on Community » Members » Search » Select the status as Inactive » Search
The system will list all the inactive members.