Fixing delete function.

Signed-off-by: thenderson <todd.hndrsn@gmail.com>