--- sidebar_label: JSHandle.dispose --- # JSHandle.dispose() method Stops referencing the element handle, and resolves when the object handle is successfully disposed of. **Signature:** ```typescript class JSHandle {dispose(): Promise;} ``` **Returns:** Promise<void>