add deleting task in memory and db function

Signed-off-by: Greg Huang <greg65236592@yahoo.com>