Ability to deactivate availability of resources (vacations, days off, ...)

It would be useful to be able to either deactivate a resource between 2 dates, either to use a calendar view to manage the resources unavailability. As of today, we have to manually deactivate the availability, it works but can not be planned in the future.