Create a unique constraint on (name, deleted). This will mean you can only have one deleted per name, however.
The obvious work-around for that works under ANSI-92 but not on MS SQLServer: https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=299229