added destroy to api