delete request to api in getProfile of model User