Skip to content
Tauri

clear

clear(): Promise<void>

Defined in: index.ts:147

Clears the clipboard.

  • Android: Only supported on SDK 28+. For older releases we write an empty string to the clipboard instead.

Promise<void>

import { clear } from '@tauri-apps/plugin-clipboard-manager';
await clear();

2.0.0


© 2025 Tauri Contributors. CC-BY / MIT