implemented a function to delete a private message from inbox