Cleaned up code

> delete, restore, and wipe task functions can now take in objects too