Fixed warnings.
[JENKINS-8963] Make existing REST API for deletion work naturally.