const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result = await client.invoke(new Api.account.deleteSecureValue({
types: [new Api.SecureValueType({...})],
}));
console.log(result); // prints the result
})();