Pleex
Search
⌃K

removeItem

Find and remove objects

removeItem({object to delete} , (success)=> {}, (error)=> {})

How to use:

my_collection.removeItem(
{key: value},
() => // removed successfully,
(error) => alert(error)
);

Arguments:

parameter
required
types
object to remove
yes
object
success callback
yes
function
failure callback
yes
function

Example:

import React,{useEffect} from 'react';
import {Text} from 'react-native';
import {Pleex} from 'pleex';
const App = () => {
// Create collection
const my_collection = Pleex.collection('myCollection');
// Get all data saved
my_collection.removeItem(
{ age: 12 },
() => // Success,
(error) => alert(error)
);
return (
<>
<Text>Try remove Item api</Text>
</>
);
};
export default App;