adapte delete to resful