use remove instead of delete