Skip to main content
Version: 6.x

deleteItem

Delete an item from storage

deleteItem(key, options) : Promise<null>

Example:

import RNSInfo from 'react-native-sensitive-info';
const myFunc = async () => {    return SInfo.deleteItem('key1', {        sharedPreferencesName: 'mySharedPrefs',        keychainService: 'myKeychain'    });}
await myFunc();
// Data successfully deleted