docs: def delete_all_secrets(cls, user, client_id):
          """Delete all of the client's credentials"""
          can_delete = yield cls(client_id=client_id).can_delete(user)
          if not can_delete:
              raise exceptions.Unauthorized('User may not delete {} secrets'
                                            .format(client_id))
  
          results = yield cls.view.get(key=client_id, include_docs=True)
  
          if results['rows']:
              db = cls.db_client()
  
              docs = [{
                  '_rev': doc['doc']['_rev'],
                  '_id': doc['doc']['_id'],
                  '_deleted': True
              } for doc in results['rows']]
  
              yield db.save_docs(docs)