Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/x

src/delete-tweet.ts

12 lines · 433 B · TypeScript
import { deleteTweet } from './client.ts'
import type { XDeleteTweetParams } from './client.ts'

/**
 * Delete or dry-run deletion of an X post. Deletion requires confirm: true.
 * @example
 * import deleteTweet from 'kody:@kody/x/delete-tweet'
 * const preview = await deleteTweet({ id: '123', dryRun: true })
 */
export default async function deleteTweetEntrypoint(params: XDeleteTweetParams) {
	return await deleteTweet(params)
}