Add changes for the second post delete method in API Rails