INNER CODE UNIT · JavaScript
deleteAllConversations
waylaidwanderer/node-chatgpt-api · bin/cli.js:258
async function deleteAllConversations() {
if (clientToUse !== 'chatgpt') {
logWarning('Deleting all conversations is only supported for ChatGPT client.');
return conversation();
}
await client.conversationsCache.clear();
logSuccess('Deleted all conversations.');
return conversation();
}
async function copyConversation() {
if (clientToUse !== 'chatgpt') {
logWarning('Copying conversations is only supported for ChatGPT client.');
return conversation();
}
if (!conversationData.conversationId) {
logWarning('No conversation to copy.');
return conversation();