delete deprecated method secret