Mod function of kinds of delete in api/dockerclient.py