How to use the delete function from ip
Find comprehensive JavaScript ip.delete code examples handpicked from public code repositorys.
GitHub: PetteriHellman/ipbackend1
274 275 276 277 278 279 280 281 282 283
const user = await User.findOne({ _id: userID }) query = await IPs.find({ _id: { $in: ipIds }, user: user }) } else { query = await IPs.find({ _id: { $in: ipIds }}) } query.forEach(ip => ip.delete()) response.status(204).end() } catch (error) { response.status(401).json({message:error}).end()
2
0
0
ip.address is the most popular function in ip (635 examples)