Fix delete paths and split api