Delete for local api

Implemented delete for the local API
Converted dates to seconds for local API support (to fit into an integer)