diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go
index e07fc42305d7..d14f2f3caebc 100644
--- a/routers/api/v1/repo/release.go
+++ b/routers/api/v1/repo/release.go
@@ -178,7 +178,7 @@ func DeleteRelease(ctx *context.APIContext) {
 		ctx.Status(404)
 		return
 	}
-	if err := models.DeleteReleaseByID(id, ctx.User); err != nil {
+	if err := models.DeleteReleaseByID(id, ctx.User, false); err != nil {
 		ctx.Error(500, "DeleteReleaseByID", err)
 		return
 	}