'Handles state == \'absent\', removing the secret'

def absent(self):

    secret = self.get_secret()
    if secret:
        try:
            if (not self.check_mode):
                self.client.remove_secret(secret['ID'])
        except APIError as exc:
            self.client.fail(('Error    removing    secret    %s:    %s' % (self.name, to_native(exc))))
        self.results['changed'] = True
