Hi @Prashanth Ettaboina ,
As per my research there is no such property available for contactFolder object to determine whether it is a deleted one or not. Please raise a feature request here so that the respective team will look in to it based on the priority.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.