how to delete data in react using api