Deleting contracts working