()
| 70 | } |
| 71 | }, |
| 72 | delete(): boolean { |
| 73 | // sync IO: called from sync context (SecureStorage interface) |
| 74 | const { storagePath } = getStoragePath() |
| 75 | try { |
| 76 | getFsImplementation().unlinkSync(storagePath) |
| 77 | return true |
| 78 | } catch (e: unknown) { |
| 79 | const code = getErrnoCode(e) |
| 80 | if (code === 'ENOENT') { |
| 81 | return true |
| 82 | } |
| 83 | return false |
| 84 | } |
| 85 | }, |
| 86 | } satisfies SecureStorage |
nothing calls this directly
no test coverage detected