Fix for #1807: make facility deletion into an API request.