build delete and rename api