plugin delete api removes data from mongo