When you delete the shared mailbox, you can restore it for up to 30 days after you delete it by going to Users & groups > ...