Support delete operations

Also auto delete if trying to set deleted = true.