Implement delete functionality

Closes #146