Update API/fp.py

fix a bug in delete